fix Object.keys shim (no one noticed it was broken...)
This commit is contained in:
parent
b4aea00449
commit
ff3bf87589
@ -168,10 +168,9 @@
|
||||
}
|
||||
if (!Object.keys) {
|
||||
Object.keys = function(o) {
|
||||
var key, _i, _len, _results;
|
||||
var key, _results;
|
||||
_results = [];
|
||||
for (_i = 0, _len = o.length; _i < _len; _i++) {
|
||||
key = o[_i];
|
||||
for (key in o) {
|
||||
_results.push(key);
|
||||
}
|
||||
return _results;
|
||||
|
||||
@ -102,7 +102,7 @@ if console?
|
||||
# XXX opera cannot into Object.keys
|
||||
if not Object.keys
|
||||
Object.keys = (o) ->
|
||||
key for key in o
|
||||
key for key of o
|
||||
|
||||
# flatten the config
|
||||
conf = {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user