diff --git a/source/Ox/js/Core.js b/source/Ox/js/Core.js index f3857afe..f2e763b5 100644 --- a/source/Ox/js/Core.js +++ b/source/Ox/js/Core.js @@ -44,7 +44,7 @@ Ox.load = function() { if (Ox.isString(value)) { modules[value] = {}; } else { - Ox.extend(modules, value) + Ox.extend(modules, value); } }); } else if (type == 'object') { @@ -233,13 +233,13 @@ Ox.print Prints its arguments to the console The string contains the timestamp, the name of the caller function, and any arguments, separated by spaces arg <*> any value - > Ox.print('foo').split(' ').pop() - "foo" + > Ox.print('foo', 'bar').split(' ').slice(1).join(' ') + 'foo bar' @*/ Ox.print = function() { - var args = Ox.toArray(arguments), date = new Date(); + var args = Ox.slice(arguments), date = new Date(); args.unshift( - Ox.formatDate(date, '%H:%M:%S.') + (+date).toString().slice(-3) + date.toString().split(' ')[4] + '.' + (+date).toString().slice(-3) ); window.console && window.console.log.apply(window.console, args); return args.join(' '); @@ -254,7 +254,7 @@ Ox.uid Returns a unique id Ox.uid = (function() { var uid = 0; return function() { - return uid++; + return ++uid; }; }());