From d2322388dc94fb14e413fc068d91b1799f3ff94e Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 15 Jun 2012 09:43:27 +0200 Subject: [PATCH] minor changes --- source/Ox/js/Polyfill.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/source/Ox/js/Polyfill.js b/source/Ox/js/Polyfill.js index 2e2bb491..65a3fbbb 100644 --- a/source/Ox/js/Polyfill.js +++ b/source/Ox/js/Polyfill.js @@ -140,8 +140,8 @@ Ox.polyfill.isArray = function(value) { Ox.polyfill.JSON see https://github.com/douglascrockford/JSON-js > Ox.polyfill.JSON.parse('{"a": [1, 2], "b": [3, 4]}') {a: [1, 2], b: [3, 4]} - > Ox.polyfill.JSON.stringify([(function(){ return arguments; }()), false, null, 0, Infinity, NaN, / /, void 0]) - '[{},false,null,0,null,null,{},null]' + > Ox.polyfill.JSON.stringify([(function(){ return arguments; }()), false, null, 0, -0, Infinity, NaN, / /, void 0]) + '[{},false,null,0,0,null,null,{},null]' > Ox.polyfill.JSON.stringify(new Date()).length 24 @*/ @@ -208,9 +208,7 @@ Ox.polyfill.keys = function(object) { } var key, ret = []; for (key in object) { - if (Object.prototype.hasOwnProperty.call(object, key)) { - ret.push(key); - } + Object.prototype.hasOwnProperty.call(object, key) && ret.push(key); } return ret; };