- if (!this._openPopupAdded) {\r
- this.on('click', this._openPopup, this);\r
- this._openPopupAdded = true;\r
+ if (!this._popupHandlersAdded) {\r
+ this\r
+ .on('click', this._openPopup, this)\r
+ .on('remove', this._closePopup, this);\r
+ this._popupHandlersAdded = true;\r