X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=0.6.x%2Fjs%2F02_dom%2F07_XNodeList.js;h=8e8702e15a3b9f4f7b5e7e9d4e62c4d26bf51482;hb=527f50d3e1930a335a6525b5c973ab27fe385868;hp=443677cd847155203846b92d5b59f0891872aceb;hpb=7973f3ff61f1ef5bd9732f527b175010d0c0971b;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 443677c..8e8702e 100644 --- a/0.6.x/js/02_dom/07_XNodeList.js +++ b/0.6.x/js/02_dom/07_XNodeList.js @@ -23,7 +23,7 @@ function X_NodeList( v ){ }; if( !skip ){ this[ n ] = xnode; - n = ++this.length; + n = ++this.length; }; }; }; @@ -53,15 +53,17 @@ X_NodeList.prototype[ 'each' ] = function( func /* opt_args... */ ){ X_TEMP.onSystemReady.push( function( sys ){ var target = X_NodeList.prototype, src = Node.prototype, - p, v, multi; + p, v; for( p in src ){ //if( X_EMPTY_OBJECT[ p ] ) continue; v = src[ p ]; if( X_Type_isFunction( v ) && !target[ p ] ){ - target[ p ] = multi = new Function( [ + target[ p ] = new Function( [ 'var a=arguments,f=X.Node.prototype.', p, ',t=this,i,l=t.length;', 'if(l)', - 'for(i=0;i