OSDN Git Service

Version 0.6.145, fix X.Audio, fix VIEW_ACTIVATE Event @X.ViewPort.
[pettanr/clientJs.git] / 0.6.x / js / 02_dom / 00_XDoc.js
index c185700..48251a6 100644 (file)
@@ -3,42 +3,42 @@
  * @namespace X.Doc
  * @alias X.Doc
  */
-X.Doc = {
-       listen : function( type, arg1, arg2, arg3 ){
+X[ 'Doc' ] = {
+       'listen' : function( type, arg1, arg2, arg3 ){
                if( type <= X_ViewPort_readyState && type === 'DOMContentLoaded' ){
                        /*
                         * X.Event.XDOM_READY 以後に listen した場合の対策
                         */
-                       X_ViewPort_document.asyncDispatch( type );
+                       X_ViewPort_document[ 'asyncDispatch' ]( type );
                };
-               type && arg1 && X_ViewPort_document.listen( type, arg1, arg2, arg3 );
-               return X.Doc;
+               type && arg1 && X_ViewPort_document[ 'listen' ]( type, arg1, arg2, arg3 );
+               return X[ 'Doc' ];
        },
        
        
-       listenOnce : function( type, arg1, arg2, arg3 ){
+       'listenOnce' : function( type, arg1, arg2, arg3 ){
                if( type <= X_ViewPort_readyState && type === 'DOMContentLoaded' ){
                        /*
                         * X.Event.XDOM_READY 以後に listen した場合の対策
                         */
-                       X_ViewPort_document.asyncDispatch( type );
+                       X_ViewPort_document[ 'asyncDispatch' ]( type );
                };
-               type && arg1 && X_ViewPort_document.listenOnce( type, arg1, arg2, arg3 );
-               return X.Doc;
+               type && arg1 && X_ViewPort_document[ 'listenOnce' ]( type, arg1, arg2, arg3 );
+               return X[ 'Doc' ];
        },
        
-       unlisten : function( type, arg1, arg2, arg3 ){
-               type && arg1 && X_ViewPort_document.unlisten( type, arg1, arg2, arg3 );
-               return X.Doc;
+       'unlisten' : function( type, arg1, arg2, arg3 ){
+               type && arg1 && X_ViewPort_document[ 'unlisten' ]( type, arg1, arg2, arg3 );
+               return X[ 'Doc' ];
        },
        
-       listening : function( type, arg1, arg2, arg3 ){
-               return X_ViewPort_document.listening( type, arg1, arg2, arg3 );
+       'listening' : function( type, arg1, arg2, arg3 ){
+               return X_ViewPort_document[ 'listening' ]( type, arg1, arg2, arg3 );
        },
        
-       create     : X_Doc_create,
+       'create'     : X_Doc_create,
        
-       createText : X_Doc_createText
+       'createText' : X_Doc_createText
        
        // html
        // head
@@ -63,7 +63,7 @@ function X_Doc_create( tag, opt_attrs, opt_css ){
                case X_Node_TYPE.HTML_STRING :
                        list = X_HtmlParser_parse( tag, true );
                        for( i = list.length; 1 < i; ){
-                               list[ --i ].destroy();
+                               list[ --i ][ 'kill' ]();
                        };
                        return list[ 0 ];
        };