1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-25 05:55:46 +01:00

Fix :rehash/updating.

This commit is contained in:
Kris Maglione
2015-05-12 20:49:07 -07:00
parent fbdae38c9e
commit 1c2766371b
3 changed files with 15 additions and 5 deletions

View File

@@ -102,7 +102,7 @@ var Overlay = Module("Overlay", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReferen
if (event === true)
target = null;
this.setData(doc, "listeners", listeners.filter(function (args) {
this.setData(doc, "listeners", listeners.filter(args => {
let elem = args[0].get();
if (target == null || elem == target && args[1] == event && args[2].wrapped == callback && args[3] == capture) {
apply(elem, "removeEventListener", args.slice(1));