diff options
Diffstat (limited to 'utils/platforms/default/lib/object.js')
-rwxr-xr-x | utils/platforms/default/lib/object.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/utils/platforms/default/lib/object.js b/utils/platforms/default/lib/object.js deleted file mode 100755 index 4e30ca8..0000000 --- a/utils/platforms/default/lib/object.js +++ /dev/null @@ -1,27 +0,0 @@ - -if (!Object.keys) { - Object.keys = function (object) { - var keys = []; - for (var name in object) { - if (Object.prototype.hasOwnProperty.call(object, name)) { - keys.push(name); - } - } - return keys; - }; -} - -if (!Object.create) { - Object.create = function (prototype) { - var Type = function () {}; - Type.prototype = prototype; - return new Type(); - }; -} - -if (!Object.freeze) { - Object.freeze = function (object) { - return object; - }; -} - |