OSDN Git Service

Version 0.6.168, fix X.UI.Repeater.
[pettanr/clientJs.git] / 0.6.x / js / 02_dom / 20_XNode.js
index 04f01e2..de76d17 100644 (file)
@@ -505,7 +505,7 @@ function X_Node_clone( opt_clone_children ){
        var xnode, xnodes, i, l;
        if( this[ '_tag' ] ){
                X_Node_newByTag = true;
-               xnode = Node( this[ '_tag' ], X_Object_clone( this[ '_attrs' ] ), X_Object_clone( this[ '_css' ] ) )
+               xnode = Node( this[ '_tag' ], X_Object_copy( this[ '_attrs' ] ), X_Object_copy( this[ '_css' ] ) )
                        [ 'attr' ]( { 'id' : this[ '_id' ] } )
                        [ 'className' ]( this[ '_className' ] );
                if( opt_clone_children && ( xnodes = this[ '_xnodes' ] ) && ( l = xnodes.length ) ){
@@ -1182,7 +1182,7 @@ function X_Node_call( name /*, opt_args... */ ){
        func = raw[ name ];
        if( X_Type_isFunction( func ) ){
                if( l ){
-                       args = X_Object_cloneArray( arguments );
+                       args = X_Array_copy( arguments );
                        args.shift();
                        return func.apply( raw, args );
                };
@@ -1192,7 +1192,7 @@ function X_Node_call( name /*, opt_args... */ ){
                // typeof func === unknown に対策
                // http://la.ma.la/blog/diary_200509031529.htm          
                if( l ){
-                       args = X_Object_cloneArray( arguments );
+                       args = X_Array_copy( arguments );
                        args.shift();
                        
                params = [];
@@ -1216,7 +1216,7 @@ function X_Node_call( name /*, opt_args... */ ){
 function X_Node_each( func /*, opt_args */ ){
        var args;
        if( 1 < arguments.length ){
-               args = X_Object_cloneArray( arguments );
+               args = X_Array_copy( arguments );
                args[ 0 ] = 0;          
                func.apply( this, args );
        } else {