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

Fix a silly error in modes.set.

This commit is contained in:
Kris Maglione
2011-02-23 16:41:26 -05:00
parent 2c109025bf
commit 80ca9194ec
4 changed files with 25 additions and 13 deletions

View File

@@ -267,7 +267,11 @@ var Contexts = Module("contexts", {
groups: { value: this.activeGroups(uri) },
}),
activeGroups: function (uri) this.initializedGroups().filter(function (g) g.filter(this), uri || this.modules.buffer.uri),
activeGroups: function (uri, doc) {
if (!uri)
({ uri, doc }) = this.modules.buffer;
return this.initializedGroups().filter(function (g) g.filter(uri, doc));
},
flush: function flush() {
delete this.groups;