1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-29 03:42:26 +01:00

Make things not explode.

This commit is contained in:
Kris Maglione
2012-01-15 15:50:14 -05:00
parent 16ca1f4983
commit 53d6587fc7
4 changed files with 34 additions and 7 deletions

View File

@@ -143,7 +143,7 @@ var Events = Module("events", {
this.active.push(elem);
}
this.active = this.active.filter(function (e) e.popupBoxObject.popupState != "closed");
this.active = this.active.filter(function (e) e.popupBoxObject && e.popupBoxObject.popupState != "closed");
if (!this.active.length && !this.activeMenubar)
modes.remove(modes.MENU, true);