3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-27 14:29:29 +01:00

Add braces around withAll

This commit is contained in:
Luke Slater 2012-06-20 08:17:46 +01:00
parent ebdd2199c7
commit 33501c44ea

View File

@ -165,9 +165,11 @@ Object.prototype.isArray = function(obj) {
};
Object.prototype.withAll = function(fun) {
for(key in this)
if(this.hasOwnProperty(key))
for(key in this) {
if(this.hasOwnProperty(key)){
fun(key, this[key]);
}
}
};
Object.prototype.length = function() {