X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=0.6.x%2Fjs%2F02_dom%2F07_XNodeList.js;h=a1bf749738bd2c04d58667eef2c72c4946882468;hb=80baf48679a9d5d59690134c361eb33673029c00;hp=f1a073ab5e58c8e8cff036acc2b578abe8b2d348;hpb=9f5ab564d20a8bd6438693146ae73209c78a2c5e;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 f1a073a..a1bf749 100644 --- a/0.6.x/js/02_dom/07_XNodeList.js +++ b/0.6.x/js/02_dom/07_XNodeList.js @@ -3,12 +3,12 @@ function X_NodeList( v ){ var args = [], l = arguments.length, i = 0, - indexOf, xnode, j, n = 0, skip; + xnode, j, n = 0, skip; + for( ; i < l; ++i ){ - //args.push( arguments[ i ] ); args.push.apply( args, arguments[ i ] ); }; - //alert( arguments[ 0 ].length + ' , ' + args.length ) + if( ( l = args.length ) === 1 ) return new Node( args[ 0 ] ); if( !this || this.append !== X_NodeList.prototype.append ) return new X_NodeList( args ); @@ -16,7 +16,7 @@ function X_NodeList( v ){ xnode = args[ i ]; //xnode = xnode && xnode.constructor === Node ? xnode : new Node( xnode ); skip = false; - if( xnode._xnodeType === 0 ) continue; + //if( xnode._xnodeType === 0 ) continue; for( j = 0; j < n; ++j ){ if( this[ j ] === xnode ){ skip = true; @@ -52,11 +52,12 @@ X_NodeList.prototype.each = function( func /* opt_args... */ ){ /* -------------------------------------- * Fuction Base, multi, getter, setter, */ -X_ViewPort.listenOnce( X_TEMP.SYSTEM_EVENT_PRE_INIT, function(){ +X_TEMP.onSystemReady.push( function( sys ){ var target = X_NodeList.prototype, src = Node.prototype, p, v, multi; 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( [ @@ -69,4 +70,3 @@ X_ViewPort.listenOnce( X_TEMP.SYSTEM_EVENT_PRE_INIT, function(){ }; }); -