i = 0,
data = X_UI_rootData,
sysOnly = false,
- ret = X_Callback_NONE,
+ ret = X_CALLBACK_NONE,
list, parent, _ret;
// mouseup で alert を出すと mouseleave が発生、ということでイベント中のイベント発火を禁止
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;
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;
};
};
};
X_UI_eventBusy = false;
- return ret | X_Callback_PREVENT_DEFAULT;
+ return ret | X_CALLBACK_PREVENT_DEFAULT;
};
/*
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' ]();
X_ViewPort[ 'listenOnce' ]( X_EVENT_AFTER_UPDATE, this, XUI_PageRoot_onViewUpdate );
- return X_Callback_NONE;
+ return X_CALLBACK_NONE;
},
updateCoursor : function( cursor ){