1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 05:19:57 +00:00

code style revision

thanks, Jeremy... will watch out for that
This commit is contained in:
Tobias Beer 2014-11-26 18:50:12 +01:00
parent 1e47a62c2a
commit 0f157cff90

View File

@ -68,13 +68,17 @@ $tw.utils.each = function(object,callback) {
if(Object.prototype.toString.call(object) == "[object Array]") {
for (f=0; f<object.length; f++) {
next = callback(object[f],f);
if (next === false) break;
if(next === false) {
break;
}
}
} else {
for(f in object) {
if(Object.prototype.hasOwnProperty.call(object,f)) {
next = callback(object[f],f,object);
if (next === false) break;
if(next === false) {
break;
}
}
}
}