Less global stuff in helpers.js

This commit is contained in:
Thomas Gelf 2014-03-04 13:05:42 +00:00
parent 3cac42161b
commit 927b0a7ae7
1 changed files with 16 additions and 8 deletions

View File

@ -1,10 +1,18 @@
Object.keys = Object.keys || function(o) { (function (Object) {
var result = [];
for(var name in o) { 'use strict';
if (o.hasOwnProperty(name))
result.push(name); Object.keys = Object.keys || function(o) {
} var result = [];
return result; for(var name in o) {
}; if (o.hasOwnProperty(name)) {
result.push(name);
}
}
return result;
};
})(Object);