Skip to content

Commit

Permalink
Fixes browserified demo on crap browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
ixti committed Dec 16, 2011
1 parent 024910f commit a389f26
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions support/browserify/30_object_getOwnPropertyNames.js
@@ -0,0 +1,12 @@
if (!Object.getOwnPropertyNames) {
// fix for IE and Safari
Object.getOwnPropertyNames = function getOwnPropertyNames(obj) {
var names = [], key;
for (key in obj) {
if (obj.hasOwnProperty(key)) {
names.push(key);
}
}
return names;
};
}

0 comments on commit a389f26

Please sign in to comment.