OSDN Git Service

Version 0.6.169, add doc comment.
[pettanr/clientJs.git] / 0.6.x / js / 20_ui / 20_PageRoot.js
index e4d2ab4..09ca3c5 100644 (file)
@@ -9,7 +9,7 @@ function X_UI_eventRellay( e ){
                i       = 0,
                data    = X_UI_rootData,
                sysOnly = false,
-               ret     = X_Callback_NONE,
+               ret     = X_CALLBACK_NONE,
                list, parent, _ret;
 
        // mouseup で alert を出すと mouseleave が発生、ということでイベント中のイベント発火を禁止
@@ -22,9 +22,9 @@ function X_UI_eventRellay( e ){
        
        e.type = type;
 
-       if( data && ( data = data.monopolyNodeData ) && ( ret = data[ 'dispatch' ]( e ) ) & X_Callback_CAPTURE_POINTER ){
+       if( data && ( data = data.monopolyNodeData ) && ( ret = data[ 'dispatch' ]( e ) ) & X_CALLBACK_CAPTURE_POINTER ){
                X_UI_eventBusy = false;
-               return ret | X_Callback_PREVENT_DEFAULT;
+               return ret | X_CALLBACK_PREVENT_DEFAULT;
        };
        
        list = X_UI_rootData.hoverList;
@@ -36,7 +36,7 @@ function X_UI_eventRellay( e ){
        while( data ){
                _ret = data[ 'dispatch' ]( e, sysOnly );
                ret |= _ret;
-               if( _ret & X_Callback_CAPTURE_POINTER || _ret & X_Callback_STOP_PROPAGATION || _ret & X_Callback_STOP_NOW ) break; // sysOnly = true;
+               if( _ret & X_CALLBACK_CAPTURE_POINTER || _ret & X_CALLBACK_STOP_PROPAGATION || _ret & X_CALLBACK_STOP_NOW ) break; // sysOnly = true;
                data = data.parentData;
        };
        
@@ -59,7 +59,7 @@ function X_UI_eventRellay( e ){
                };
        };
        X_UI_eventBusy = false;
-       return ret | X_Callback_PREVENT_DEFAULT;
+       return ret | X_CALLBACK_PREVENT_DEFAULT;
 };
 
 /*
@@ -140,8 +140,8 @@ var XUI_PageRoot = XUI_Box.inherits(
                        var cancelable = !e || ( e.type !== X_EVENT_VIEW_RESIZED && e.type !== X_EVENT_BASE_FONT_RESIZED ),
                                size, font, w, h;
                        
-                       if( this[ 'dispatch' ]( { type : XUI_Event.LAYOUT_BEFORE, 'cancelable' : cancelable } ) & X_Callback_PREVENT_DEFAULT && cancelable ){
-                               return X_Callback_NONE;
+                       if( this[ 'dispatch' ]( { type : XUI_Event.LAYOUT_BEFORE, 'cancelable' : cancelable } ) & X_CALLBACK_PREVENT_DEFAULT && cancelable ){
+                               return X_CALLBACK_NONE;
                        };
                        
                        size = X[ 'ViewPort' ][ 'getSize' ]();
@@ -153,7 +153,7 @@ var XUI_PageRoot = XUI_Box.inherits(
                        
                        X_ViewPort[ 'listenOnce' ]( X_EVENT_AFTER_UPDATE, this, XUI_PageRoot_onViewUpdate );
                        
-                       return X_Callback_NONE;
+                       return X_CALLBACK_NONE;
                },
                
                updateCoursor : function( cursor ){