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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user