remove 'Ox.copy' alias

This commit is contained in:
rolux 2012-06-04 11:26:01 +02:00
parent cd8b2e297d
commit 7282835f0d

View file

@ -28,8 +28,7 @@ Ox.clone <f> Returns a (shallow or deep) copy of an array or object
> (function() { var a = [[0, 1]], b = Ox.clone(a, true); a[0][0] = null; return b[0]; }()) > (function() { var a = [[0, 1]], b = Ox.clone(a, true); a[0][0] = null; return b[0]; }())
[0, 1] [0, 1]
@*/ @*/
Ox.clone = Ox.copy = function(collection, deep) { Ox.clone = function(collection, deep) {
// fixme: copy or clone?
var ret, type = Ox.typeOf(collection); var ret, type = Ox.typeOf(collection);
if (deep) { if (deep) {
ret = type == 'array' ? [] : {}; ret = type == 'array' ? [] : {};