Ox.toArray -> Ox.slice

This commit is contained in:
rolux 2013-12-01 14:57:52 +01:00
commit 031aa4367b
11 changed files with 20 additions and 20 deletions

View file

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