1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 14:12:27 +01: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

@@ -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)