X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;ds=sidebyside;f=0.6.x%2Fjs%2F02_dom%2F07_XNodeList.js;h=50eaff9b0998e62897eeede9a30bb6af7b24d245;hb=1bfbfbb850a390a1c46546d445961966e4cdf063;hp=fccfdb9fe35ba4560b9b330d779ace1107c56a6b;hpb=a130cabd01fde8865990a59d849f5d5d08ed2119;p=pettanr%2FclientJs.git diff --git a/0.6.x/js/02_dom/07_XNodeList.js b/0.6.x/js/02_dom/07_XNodeList.js index fccfdb9..50eaff9 100644 --- a/0.6.x/js/02_dom/07_XNodeList.js +++ b/0.6.x/js/02_dom/07_XNodeList.js @@ -10,13 +10,11 @@ function X_NodeList( v ){ }; if( ( l = args.length ) === 1 ) return new Node( args[ 0 ] ); - if( !this || this.append !== X_NodeList.prototype.append ) return new X_NodeList( args ); + if( !this || this[ 'append' ] !== X_NodeList.prototype[ 'append' ] ) return new X_NodeList( args ); for( i = 0; i < l; ++i ){ xnode = args[ i ]; - //xnode = xnode && xnode.constructor === Node ? xnode : new Node( xnode ); skip = false; - //if( xnode._xnodeType === 0 ) continue; for( j = 0; j < n; ++j ){ if( this[ j ] === xnode ){ skip = true; @@ -31,7 +29,7 @@ function X_NodeList( v ){ }; X_NodeList.prototype.length = 0; -X_NodeList.prototype.each = function( func /* opt_args... */ ){ +X_NodeList.prototype[ 'each' ] = function( func /* opt_args... */ ){ var l = this.length, i = 0, args;