Ox.toArray -> Ox.slice
This commit is contained in:
parent
3a28b08d46
commit
031aa4367b
11 changed files with 20 additions and 20 deletions
|
|
@ -123,7 +123,7 @@ Ox.localStorage = function(namespace) {
|
|||
// IE 8 doesn't like `storage.delete`
|
||||
storage['delete'] = function() {
|
||||
var keys = arguments.length == 0 ? Object.keys(storage())
|
||||
: Ox.toArray(arguments)
|
||||
: Ox.slice(arguments)
|
||||
keys.forEach(function(key) {
|
||||
delete localStorage[namespace + '.' + key];
|
||||
});
|
||||
|
|
@ -173,7 +173,7 @@ Ox.Log = (function() {
|
|||
}));
|
||||
};
|
||||
that.log = function() {
|
||||
var args = Ox.toArray(arguments), date, ret;
|
||||
var args = Ox.slice(arguments), date, ret;
|
||||
if (!log.filterEnabled || log.filter.indexOf(args[0]) > -1) {
|
||||
date = new Date();
|
||||
args.unshift(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue