fix: Popup remove watcher

This commit is contained in:
陈嘉涵 2017-08-21 21:59:06 +08:00
parent 865f92f735
commit a94aa5bd77

View File

@ -169,8 +169,11 @@ export default {
doAfterClose() {
this.closing = false;
PopupManager.closeModal(this._popupId);
document.removeEventListener('touchstart', this.recordPosition, false);
document.removeEventListener('touchmove', this.watchTouchMove, false);
if (this.preventScroll) {
document.removeEventListener('touchstart', this.recordPosition, false);
document.removeEventListener('touchmove', this.watchTouchMove, false);
}
}
},