1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-29 13:02:27 +01:00

First work towards cleaning up the commandline.js rat's nest. Don't expect any of these new interfaces to stay remotely as they are.

--HG--
branch : key-processing
This commit is contained in:
Kris Maglione
2011-01-26 01:24:54 -05:00
parent a66864d077
commit c284e1ced8
18 changed files with 829 additions and 790 deletions

View File

@@ -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);
}
})