Make things not explode.

This commit is contained in:
Kris Maglione committed 2012-01-15 15:50:14 -05:00
1 parent 16ca1f4983
commit 53d6587fc7
4 files changed
+34 -7

No files matched your search

+1 -1
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);