diff options
author | portix <none@none> | 2013-02-20 01:42:44 +0100 |
---|---|---|
committer | portix <none@none> | 2013-02-20 01:42:44 +0100 |
commit | 427ead3f7118d8bfc39424dc4ba0f98065314811 (patch) | |
tree | bab091109eaf5d777e2d3e7e3a274f61b36a35e0 /scripts | |
parent | 96de8b5e18ce9477e5a1e9e04f13b8d029c375f5 (diff) | |
download | dwb-427ead3f7118d8bfc39424dc4ba0f98065314811.zip |
Indentation in util.c, checking for own properties in object.forEach
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/util.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/lib/util.js b/scripts/lib/util.js index b3e0189e..c4ad60f9 100644 --- a/scripts/lib/util.js +++ b/scripts/lib/util.js @@ -84,7 +84,10 @@ { var key; for (key in this) - callback(key, this[key], this); + { + if (this.hasOwnProperty(key)) + callback(key, this[key], this); + } } }); } |