mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-27 18:40:28 +00:00
added object as third parameter to callback
This commit is contained in:
parent
0f157cff90
commit
4d68111c49
@ -67,7 +67,7 @@ $tw.utils.each = function(object,callback) {
|
||||
if(object) {
|
||||
if(Object.prototype.toString.call(object) == "[object Array]") {
|
||||
for (f=0; f<object.length; f++) {
|
||||
next = callback(object[f],f);
|
||||
next = callback(object[f],f,object);
|
||||
if(next === false) {
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user