some more support for opera
This commit is contained in:
parent
5818bd5edc
commit
74873e3bfb
5 changed files with 203 additions and 129 deletions
17
source/Ox.js
17
source/Ox.js
|
|
@ -142,6 +142,23 @@ if (!Array.prototype.reduce) {
|
|||
};
|
||||
}
|
||||
|
||||
// see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/keys
|
||||
if (!Object.keys) {
|
||||
Object.keys = function(obj) {
|
||||
if (obj !== Object(obj)) {
|
||||
throw new TypeError();
|
||||
}
|
||||
var key,
|
||||
ret = [];
|
||||
for (key in obj) {
|
||||
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
||||
ret.push(key);
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
//@ Core -----------------------------------------------------------------------
|
||||
|
||||
/*@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue