From 0a7f399bf7658ca8a2bcc55ebb4af646162faa35 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Wed, 26 Jan 2011 03:36:34 -0500 Subject: Use table tags in :addons and :downloads to better support :yank. --- common/modules/template.jsm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'common/modules/template.jsm') 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); } }) -- cgit v1.2.3