1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-04-05 10:43:36 +02:00

dont use for...in to loop over the callbacks array in triggerCallback()

This commit is contained in:
Doug Kearns
2008-09-05 12:19:24 +00:00
parent 34ae572826
commit d34abe36a1

View File

@@ -561,7 +561,7 @@ const liberator = (function () //{{{
triggerCallback: function (type, mode, data) triggerCallback: function (type, mode, data)
{ {
//dump("type: " + type + " mode: " + mode + "data: " + data + "\n"); //dump("type: " + type + " mode: " + mode + "data: " + data + "\n");
for (var i in callbacks) for (let i = 0; i < callbacks.length; i++)
{ {
var [thistype, thismode, thisfunc] = callbacks[i]; var [thistype, thismode, thisfunc] = callbacks[i];
if (mode == thismode && type == thistype) if (mode == thismode && type == thistype)