Ox.toArray -> Ox.slice
This commit is contained in:
parent
3a28b08d46
commit
031aa4367b
11 changed files with 20 additions and 20 deletions
|
|
@ -296,7 +296,7 @@ My.range <f> Returns a python-style range
|
|||
*/
|
||||
My.range = function() {
|
||||
var a = [];
|
||||
Ox.loop.apply(null, Ox.toArray(arguments).concat(function(i) {
|
||||
Ox.loop.apply(null, Ox.slice(arguments).concat(function(i) {
|
||||
a.push(i);
|
||||
}));
|
||||
return a;
|
||||
|
|
@ -358,7 +358,7 @@ My.localStorage = function(ns) {
|
|||
}
|
||||
storage.delete = function() {
|
||||
var keys = arguments.length == 0 ? Object.keys(storage())
|
||||
: Ox.toArray(arguments)
|
||||
: Ox.slice(arguments)
|
||||
keys.forEach(function(key) {
|
||||
delete localStorage[ns + '.' + key];
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue