summaryrefslogtreecommitdiff
path: root/common/content/autocommands.js
diff options
context:
space:
mode:
Diffstat (limited to 'common/content/autocommands.js')
-rw-r--r--common/content/autocommands.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/common/content/autocommands.js b/common/content/autocommands.js
index 08355e16..95464e0c 100644
--- a/common/content/autocommands.js
+++ b/common/content/autocommands.js
@@ -10,10 +10,13 @@
var AutoCommand = Struct("event", "filter", "command");
update(AutoCommand.prototype, {
- eventName: Class.Memoize(function () this.event.toLowerCase()),
+ eventName: Class.Memoize(function () {
+ return this.event.toLowerCase();
+ }),
match: function (event, pattern) {
- return (!event || this.eventName == event.toLowerCase()) && (!pattern || String(this.filter) === String(pattern));
+ return (!event || this.eventName == event.toLowerCase()) &&
+ (!pattern || String(this.filter) === String(pattern));
}
});