OSDN Git Service

Version 0.6.168, fix X.UI.Repeater.
[pettanr/clientJs.git] / 0.6.x / js / 20_ui / 14_ChromeBox.js
index 7053192..06ea4a5 100644 (file)
@@ -52,13 +52,13 @@ X.UI.ChromeBox = X.UI.Box.inherits(
                        X_Pair_create( this, XUI_ChromeBox( this, XUI_Layout_Canvas, arguments ) );\r
                },\r
                add : function( /* node, node, node ... */ ){\r
-                       X_Pair_get( this ).containerNode.addAt( this.numNodes(), X_Object_cloneArray( arguments ) );\r
+                       X_Pair_get( this ).containerNode.addAt( this.numNodes(), X_Array_copy( arguments ) );\r
                        return this;\r
                },\r
                addAt : function( index /* , node, node, node ... */ ){\r
                        var nodes;\r
                        if( index < 0 ) index = 0;\r
-                       nodes = X_Object_cloneArray( arguments );\r
+                       nodes = X_Array_copy( arguments );\r
                        X_Pair_get( this ).containerNode.addAt( nodes.shift(), nodes );\r
                        return this;\r
                },\r