summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorportix <none@none>2013-02-20 01:42:44 +0100
committerportix <none@none>2013-02-20 01:42:44 +0100
commit427ead3f7118d8bfc39424dc4ba0f98065314811 (patch)
treebab091109eaf5d777e2d3e7e3a274f61b36a35e0 /scripts
parent96de8b5e18ce9477e5a1e9e04f13b8d029c375f5 (diff)
downloaddwb-427ead3f7118d8bfc39424dc4ba0f98065314811.zip
Indentation in util.c, checking for own properties in object.forEach
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/util.js5
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);
+ }
}
});
}