1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-19 21:07:57 +01:00

DOM#highlight magic. Provide 'this' object for DOM#filter.

This commit is contained in:
Kris Maglione
2011-09-17 21:30:39 -04:00
parent b330d8c909
commit 062e7e2a61
4 changed files with 18 additions and 11 deletions

View File

@@ -141,6 +141,7 @@ var Modes = Module("modes", {
this.addMode("EMBED", {
description: "Active when an <embed> or <object> element is focused",
bases: [modes.MAIN],
insert: true,
ownsFocus: true,
passthrough: true
@@ -308,6 +309,7 @@ var Modes = Module("modes", {
},
removeMode: function removeMode(mode) {
this.remove(mode);
if (this[mode.name] == mode)
delete this[mode.name];
if (this._modeMap[mode.name] == mode)