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:
parent
ebdd2199c7
commit
33501c44ea
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user