From d34abe36a1c0b63112777536c7e0eeae2cf054dd Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Fri, 5 Sep 2008 12:19:24 +0000 Subject: [PATCH] dont use for...in to loop over the callbacks array in triggerCallback() --- content/liberator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/liberator.js b/content/liberator.js index 5c76f42a..52c2fdd7 100644 --- a/content/liberator.js +++ b/content/liberator.js @@ -560,8 +560,8 @@ const liberator = (function () //{{{ triggerCallback: function (type, mode, data) { - // dump("type: " + type + " mode: " + mode + "data: " + data + "\n"); - for (var i in callbacks) + //dump("type: " + type + " mode: " + mode + "data: " + data + "\n"); + for (let i = 0; i < callbacks.length; i++) { var [thistype, thismode, thisfunc] = callbacks[i]; if (mode == thismode && type == thistype)