OSDN Git Service

Version 0.6.137, fix X.EventDispatcher.unlisten & remove X.Node.destroy.
[pettanr/clientJs.git] / 0.6.x / js / 02_dom / 00_XDoc.js
index e2fcbf8..48251a6 100644 (file)
@@ -12,7 +12,7 @@ X[ 'Doc' ] = {
                        X_ViewPort_document[ 'asyncDispatch' ]( type );
                };
                type && arg1 && X_ViewPort_document[ 'listen' ]( type, arg1, arg2, arg3 );
-               return X.Doc;
+               return X[ 'Doc' ];
        },
        
        
@@ -24,12 +24,12 @@ X[ 'Doc' ] = {
                        X_ViewPort_document[ 'asyncDispatch' ]( type );
                };
                type && arg1 && X_ViewPort_document[ 'listenOnce' ]( type, arg1, arg2, arg3 );
-               return X.Doc;
+               return X[ 'Doc' ];
        },
        
        'unlisten' : function( type, arg1, arg2, arg3 ){
                type && arg1 && X_ViewPort_document[ 'unlisten' ]( type, arg1, arg2, arg3 );
-               return X.Doc;
+               return X[ 'Doc' ];
        },
        
        'listening' : function( type, arg1, arg2, arg3 ){
@@ -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 ];
        };