OSDN Git Service

Version 0.6.134, add comments for closure compiler.
[pettanr/clientJs.git] / 0.6.x / js / 02_dom / 07_XNodeList.js
index fccfdb9..b6df535 100644 (file)
@@ -10,7 +10,7 @@ function X_NodeList( v ){
        };\r
 \r
        if( ( l = args.length ) === 1 ) return new Node( args[ 0 ] );\r
-       if( !this || this.append !== X_NodeList.prototype.append ) return new X_NodeList( args );\r
+       if( !this || this[ 'append' ] !== X_NodeList.prototype[ 'append' ] ) return new X_NodeList( args );\r
        \r
        for( i = 0; i < l; ++i ){\r
                xnode = args[ i ];\r
@@ -31,7 +31,7 @@ function X_NodeList( v ){
 };\r
 X_NodeList.prototype.length = 0;\r
 \r
-X_NodeList.prototype.each = function( func /* opt_args... */ ){\r
+X_NodeList.prototype[ 'each' ] = function( func /* opt_args... */ ){\r
        var l = this.length,\r
                i = 0, args;\r
 \r