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) { Object.prototype.withAll = function(fun) {
for(key in this) for(key in this) {
if(this.hasOwnProperty(key)) if(this.hasOwnProperty(key)){
fun(key, this[key]); fun(key, this[key]);
}
}
}; };
Object.prototype.length = function() { Object.prototype.length = function() {