remove 'Ox.copy' alias
This commit is contained in:
parent
cd8b2e297d
commit
7282835f0d
1 changed files with 1 additions and 2 deletions
|
@ -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]; }())
|
||||
[0, 1]
|
||||
@*/
|
||||
Ox.clone = Ox.copy = function(collection, deep) {
|
||||
// fixme: copy or clone?
|
||||
Ox.clone = function(collection, deep) {
|
||||
var ret, type = Ox.typeOf(collection);
|
||||
if (deep) {
|
||||
ret = type == 'array' ? [] : {};
|
||||
|
|
Loading…
Reference in a new issue