forked from GitHub/dbot
Add braces around withAll
This commit is contained in:
parent
ebdd2199c7
commit
33501c44ea
@ -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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user