diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-01-26 03:36:34 -0500 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-01-26 03:36:34 -0500 |
commit | 0a7f399bf7658ca8a2bcc55ebb4af646162faa35 (patch) | |
tree | 499b2068a6f36a8535b3cf378a07a7936a11120e /common/modules/template.jsm | |
parent | 102fb67efff462160837ce733c8d542f91f8467a (diff) | |
download | pentadactyl-0a7f399bf7658ca8a2bcc55ebb4af646162faa35.tar.gz |
Use table tags in :addons and :downloads to better support :yank.
Diffstat (limited to 'common/modules/template.jsm')
-rw-r--r-- | common/modules/template.jsm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/common/modules/template.jsm b/common/modules/template.jsm index 902d6f04..e7ddcab7 100644 --- a/common/modules/template.jsm +++ b/common/modules/template.jsm @@ -138,7 +138,9 @@ var Template = Module("Template", { init.supercall(this, node); let obj = params.eventTarget; - for (let [event, handler] in Iterator(obj[this.getAttribute("events") || "events"])) + let events = obj[this.getAttribute("events") || "events"]; + + for (let [event, handler] in Iterator(events)) node.addEventListener(event, obj.closure(handler), false); } }) |