X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=0.6.x%2Fjs%2F20_ui%2F14_ChromeBox.js;h=06ea4a5f0b005961b22e6512a2d7972a6874a032;hb=3d352d8bf476ab57cc333e8d02d0e6ea5efa69b7;hp=7053192a0102f61bf7eebc75f539e654451426ef;hpb=86c591d2888cf7b24365c1950646fb1f6190efd1;p=pettanr%2FclientJs.git diff --git a/0.6.x/js/20_ui/14_ChromeBox.js b/0.6.x/js/20_ui/14_ChromeBox.js index 7053192..06ea4a5 100644 --- a/0.6.x/js/20_ui/14_ChromeBox.js +++ b/0.6.x/js/20_ui/14_ChromeBox.js @@ -52,13 +52,13 @@ X.UI.ChromeBox = X.UI.Box.inherits( X_Pair_create( this, XUI_ChromeBox( this, XUI_Layout_Canvas, arguments ) ); }, add : function( /* node, node, node ... */ ){ - X_Pair_get( this ).containerNode.addAt( this.numNodes(), X_Object_cloneArray( arguments ) ); + X_Pair_get( this ).containerNode.addAt( this.numNodes(), 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 ).containerNode.addAt( nodes.shift(), nodes ); return this; },