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