mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-07 07:34:11 +01:00
Add dom.jsm. And stuff.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
var AutoCommand = Struct("event", "filter", "command");
|
||||
update(AutoCommand.prototype, {
|
||||
eventName: Class.memoize(function () this.event.toLowerCase()),
|
||||
eventName: Class.Memoize(function () this.event.toLowerCase()),
|
||||
|
||||
match: function (event, pattern) {
|
||||
return (!event || this.eventName == event.toLowerCase()) && (!pattern || String(this.filter) === String(pattern));
|
||||
|
||||
Reference in New Issue
Block a user