implement slice

pull/1/head
ansuz 7 years ago
parent a8f7beb20b
commit 47ce645897

@ -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;

Loading…
Cancel
Save