From 97861715205fecd171da81241137fede5e571e23 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Mon, 24 Jan 2011 12:50:08 -0500 Subject: [PATCH] Get rid of horrible coalesced event handlers in commandline.js. --HG-- branch : key-processing --- common/content/commandline.js | 297 ++++++++++++++++------------------ common/content/events.js | 4 +- common/content/hints.js | 2 +- common/content/modes.js | 4 +- common/content/statusline.js | 9 +- common/modules/addons.jsm | 26 ++- common/modules/highlight.jsm | 13 +- common/modules/overlay.jsm | 8 +- common/modules/template.jsm | 10 ++ common/modules/util.jsm | 14 +- 10 files changed, 181 insertions(+), 206 deletions(-) diff --git a/common/content/commandline.js b/common/content/commandline.js index 3581f1ff..819ec0c5 100644 --- a/common/content/commandline.js +++ b/common/content/commandline.js @@ -9,11 +9,16 @@ /** @scope modules */ var CommandWidgets = Class("CommandWidgets", { - init: function () { - let _status = "dactyl-statusline-field-"; + depends: ["statusline"], + + init: function init() { + let s = "dactyl-statusline-field-"; XML.ignoreWhitespace = true; util.overlayWindow(window, { + objects: { + eventTarget: commandline + }, append: @@ -39,16 +44,15 @@ var CommandWidgets = Class("CommandWidgets", {