1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

added object as third parameter to callback

This commit is contained in:
Tobias Beer 2014-12-02 12:47:19 +01:00
parent 0f157cff90
commit 4d68111c49

View File

@ -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;
}