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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user