implement slice
This commit is contained in:
@@ -202,5 +202,9 @@ define([], function () {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Util.slice = function (A) {
|
||||||
|
return Array.prototype.slice.call(A);
|
||||||
|
};
|
||||||
|
|
||||||
return Util;
|
return Util;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -103,6 +103,7 @@ define([
|
|||||||
common.getAppType = Util.getAppType;
|
common.getAppType = Util.getAppType;
|
||||||
common.notAgainForAnother = Util.notAgainForAnother;
|
common.notAgainForAnother = Util.notAgainForAnother;
|
||||||
common.uid = Util.uid;
|
common.uid = Util.uid;
|
||||||
|
common.slice = Util.slice;
|
||||||
|
|
||||||
// import hash utilities for export
|
// import hash utilities for export
|
||||||
var createRandomHash = common.createRandomHash = Hash.createRandomHash;
|
var createRandomHash = common.createRandomHash = Hash.createRandomHash;
|
||||||
|
|||||||
Reference in New Issue
Block a user