1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 09:48:00 +01:00

Update hints on command change in :addons/:downloads.

This commit is contained in:
Kris Maglione
2011-02-19 22:16:29 -05:00
parent d37e8159ed
commit 624563523d
3 changed files with 12 additions and 2 deletions

View File

@@ -39,6 +39,7 @@ var HintSession = Class("HintSession", CommandMode, {
this.top = opts.window || content;
this.top.addEventListener("resize", hints.resizeTimer.closure.tell, true);
this.top.addEventListener("dactyl-commandupdate", hints.resizeTimer.closure.tell, true);
this.generate();
@@ -90,8 +91,10 @@ var HintSession = Class("HintSession", CommandMode, {
if (!stack.push) {
if (hints.hintSession == this)
hints.hintSession = null;
if (this.top)
if (this.top) {
this.top.removeEventListener("resize", hints.resizeTimer.closure.tell, true);
this.top.removeEventListener("dactyl-commandupdate", hints.resizeTimer.closure.tell, true);
}
this.removeHints(0);
}