summaryrefslogtreecommitdiff
path: root/common/content
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-03-02 02:59:04 -0500
committerKris Maglione <maglione.k@gmail.com>2011-03-02 02:59:04 -0500
commite032a82d621c49ae2b733818165508392d27669c (patch)
treeeed258d3016972128be26846404ac9e18c2ce4b1 /common/content
parent28d1c1bcade5d1cff91bafc32f5b9a28b32a3fcd (diff)
downloadpentadactyl-e032a82d621c49ae2b733818165508392d27669c.tar.gz
Move some more strings to messages.properties and report (but don't throw) an error for unknown strings.
Diffstat (limited to 'common/content')
-rw-r--r--common/content/events.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/common/content/events.js b/common/content/events.js
index a7feeafa..ef7a742a 100644
--- a/common/content/events.js
+++ b/common/content/events.js
@@ -302,10 +302,12 @@ var EventHive = Class("EventHive", Contexts.Hive, {
* phase, otherwise during the bubbling phase.
*/
listen: function (target, event, callback, capture, allowUntrusted) {
- if (isObject(event))
- var [self, events] = [event, event[callback || "events"]];
- else
- [self, events] = [null, array.toObject([[event, callback]])];
+ if (!isObject(event))
+ var [self, events] = [null, array.toObject([[event, callback]])];
+ else {
+ [self, events] = [event, event[callback || "events"]];
+ [,, capture, allowUntrusted] = arguments;
+ }
for (let [event, callback] in Iterator(events)) {
let args = [Cu.getWeakReference(target),