OSDN Git Service

Version 0.6.135, fix for closure compiler.
[pettanr/clientJs.git] / 0.6.x / js / 01_core / 16_XViewPort.js
index d31a5fe..bcc341a 100644 (file)
@@ -21,7 +21,7 @@ var X_ViewPort_readyState,
        X_Dom_orientationchange = window[ 'orientation' ] !== undefined && function( e ){
                X_ViewPort_orientationFlag = true;
                !X_UA[ 'Android' ] && X_ViewPort_resize();
-               //console.log( '-- orientationchange : ' + X.ViewPort.getSize[ 0 ] + ' ' + X.ViewPort.getSize[ 1 ] );
+               //console.log( '-- orientationchange : ' + X[ 'ViewPort' ].getSize[ 0 ] + ' ' + X[ 'ViewPort' ].getSize[ 1 ] );
        },
        
        X_ViewPort_document = X_EventDispatcher( document ),
@@ -87,7 +87,7 @@ X_ViewPort = X_Class_override(
  * @namespace X.ViewPort
  * @alias X.ViewPort
  */
-X.ViewPort = {
+X[ 'ViewPort' ] = {
        
        'listen' : function( type, arg1, arg2, arg3 ){
                if( type <= X_ViewPort_readyState ){
@@ -98,7 +98,7 @@ X.ViewPort = {
                };
                // ie8-では keydown -> documentへ
                type && arg1 && X_ViewPort[ 'listen' ]( type, arg1, arg2, arg3 );
-               return X.ViewPort;
+               return X[ 'ViewPort' ];
        },
        
        
@@ -110,12 +110,12 @@ X.ViewPort = {
                        X_ViewPort[ 'asyncDispatch' ]( type );
                };
                type && arg1 && X_ViewPort[ 'listenOnce' ]( type, arg1, arg2, arg3 );
-               return X.ViewPort;
+               return X[ 'ViewPort' ];
        },
        
        'unlisten' : function( type, arg1, arg2, arg3 ){
                type && arg1 && X_ViewPort[ 'unlisten' ]( type, arg1, arg2, arg3 );
-               return X.ViewPort;
+               return X[ 'ViewPort' ];
        },
        
        'listening' : function( type, arg1, arg2, arg3 ){
@@ -421,7 +421,7 @@ console.log( 'X.Dom dom:w3c=' + X_UA_DOM.W3C + ' ev:w3c=' + X_UA_EVENT.W3C );
 if( X_UA_EVENT.W3C ){
        X_ViewPort_document[ 'listenOnce' ]( 'DOMContentLoaded', X_TEMP.onDomContentLoaded );
 } else
-if( 6 <= X_UA[ 'IE' ] && X.inHead ){
+if( 6 <= X_UA[ 'IE' ] && X[ 'inHead' ] ){
        // if this script in Head
        document.write( "<script id=__ie_onload defer src=javascript:void(0)><\/script>" );
        X_TEMP._script = document.getElementById( "__ie_onload" );