X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=0.6.x%2Fjs%2F20_ui%2F08_Box.js;h=613400a7537c30a88e6cc2bf011893de72b1cd6c;hb=3d352d8bf476ab57cc333e8d02d0e6ea5efa69b7;hp=2c66217ec83561db059dc929cb889c7532ab82fd;hpb=8e74cf066ea48ec8cf34efb2b5e84725c10c813a;p=pettanr%2FclientJs.git diff --git a/0.6.x/js/20_ui/08_Box.js b/0.6.x/js/20_ui/08_Box.js index 2c66217..613400a 100644 --- a/0.6.x/js/20_ui/08_Box.js +++ b/0.6.x/js/20_ui/08_Box.js @@ -299,18 +299,18 @@ X.UI.Box = X.UI.AbstractUINode.inherits( }, add : function( /* node, node, node ... */ ){ - X_Pair_get( this ).addAt( this.numNodes() + 1, X_Object_cloneArray( arguments ) ); + X_Pair_get( this ).addAt( this.numNodes() + 1, X_Array_copy( arguments ) ); return this; }, addAt : function( index /* , node , node, node ... */ ){ var nodes; if( index < 0 ) index = 0; - nodes = X_Object_cloneArray( arguments ); + nodes = X_Array_copy( arguments ); X_Pair_get( this ).addAt( nodes.shift(), nodes ); return this; }, remove : function( /* node, node, node ... */ ){ - X_Pair_get( this )[ 'remove' ]( X_Object_cloneArray( arguments ) ); + X_Pair_get( this )[ 'remove' ]( X_Array_copy( arguments ) ); return this; }, removeAt : function( from, length ){