1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-14 08:55:46 +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

@@ -136,7 +136,14 @@ var Template = Module("Template", {
},
update: function update() {
let collapsed = this.collapsed;
this.collapsed = !this.commandAllowed;
if (collapsed == this.commandAllowed) {
let event = this.node.ownerDocument.createEvent("Events");
event.initEvent("dactyl-commandupdate", false, false);
this.node.dispatchEvent(event);
}
}
}),