Less global stuff in helpers.js
This commit is contained in:
parent
3cac42161b
commit
927b0a7ae7
|
@ -1,10 +1,18 @@
|
||||||
|
|
||||||
|
(function (Object) {
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
|
||||||
Object.keys = Object.keys || function(o) {
|
Object.keys = Object.keys || function(o) {
|
||||||
var result = [];
|
var result = [];
|
||||||
for(var name in o) {
|
for(var name in o) {
|
||||||
if (o.hasOwnProperty(name))
|
if (o.hasOwnProperty(name)) {
|
||||||
result.push(name);
|
result.push(name);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
})(Object);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue