1
0
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:
Kris Maglione
2008-12-03 21:49:49 -05:00
parent 3592723aad
commit 35f807a046
5 changed files with 36 additions and 61 deletions

View File

@@ -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;
},