mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 13:52:26 +01:00
dont use for...in to loop over the callbacks array in triggerCallback()
This commit is contained in:
@@ -560,8 +560,8 @@ 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