Bug 898040 - Followup to only remove the event listeners if they were added. r=MattN

This commit is contained in:
Jared Wein 2013-07-25 18:04:47 -04:00
parent d0bc0cba9d
commit 95b937964b

View File

@ -56,6 +56,10 @@ const PanelUI = {
},
uninit: function() {
if (!this._eventListenersAdded) {
return;
}
for (let event of this.kEvents) {
this.panel.removeEventListener(event, this);
}