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