X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=0.6.x%2Fjs%2F20_ui%2F20_PageRoot.js;h=43fbb741edd5dc1e23655d4b99c02e29f1d39812;hb=50462b7b22a3c42bdbf2fb84d782937f817368f4;hp=8b567a8fcbd73dc9600dda1eb2d095eed0ea5fe7;hpb=0231a4fe0d679b2959968193b0fbeebc44531aaf;p=pettanr%2FclientJs.git diff --git a/0.6.x/js/20_ui/20_PageRoot.js b/0.6.x/js/20_ui/20_PageRoot.js index 8b567a8..43fbb74 100644 --- a/0.6.x/js/20_ui/20_PageRoot.js +++ b/0.6.x/js/20_ui/20_PageRoot.js @@ -2,7 +2,7 @@ var X_UI_rootData = null, X_UI_eventBusy = false; function X_UI_eventRellay( e ){ - var font = X.ViewPort.getBaseFontSize(), + var font = X[ 'ViewPort' ][ 'getBaseFontSize' ](), x = e.clientX / font, y = e.clientY / font, type = X.UI.Event.NameToID[ e.type ], @@ -145,8 +145,8 @@ X.UI._PageRoot = X.UI._Box.inherits( }; }, calculate : function( e ){ - var size = X.ViewPort.getSize(), - font = X.ViewPort.getBaseFontSize(), + var size = X[ 'ViewPort' ][ 'getSize' ](), + font = X[ 'ViewPort' ][ 'getBaseFontSize' ](), w = size[ 0 ], h = size[ 1 ]; this.layout.calculate( this, false, 0, 0, w / font, h / font ); @@ -158,7 +158,7 @@ X.UI._PageRoot = X.UI._Box.inherits( }, _remove : function(){ - this.xnodeInteractiveLayer[ 'unlisten' ](); + X_EventDispatcher_unlistenAll( this.xnodeInteractiveLayer ); _Box.prototype._remove.call( this ); } }