mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-21 09:45:46 +01:00
Backout last change. Something broke just before I committed.
This commit is contained in:
@@ -600,14 +600,14 @@ const liberator = (function () //{{{
|
||||
callbacks.push([type, mode, func]);
|
||||
},
|
||||
|
||||
triggerCallback: function (type, mode)
|
||||
triggerCallback: function (type, mode, data)
|
||||
{
|
||||
// liberator.dump("type: " + type + " mode: " + mode + "data: " + data + "\n");
|
||||
for (let [,callback] in Iterator(callbacks))
|
||||
for (let i = 0; i < callbacks.length; i++)
|
||||
{
|
||||
var [thistype, thismode, thisfunc] = callbacks;
|
||||
var [thistype, thismode, thisfunc] = callbacks[i];
|
||||
if (mode == thismode && type == thistype)
|
||||
return thisfunc.apply(this, Array.slice(arguments, 2));
|
||||
return thisfunc.call(this, data);
|
||||
}
|
||||
return false;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user