mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
chore(gesture): null hammer on unlisten
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
|
|
||||||
<ion-navbar *navbar>
|
<ion-navbar *navbar>
|
||||||
<button [menuToggle]="activeMenu">
|
<button menuToggle>
|
||||||
<ion-icon name="menu"></ion-icon>
|
<ion-icon name="menu"></ion-icon>
|
||||||
</button>
|
</button>
|
||||||
<ion-title>
|
<ion-title>
|
||||||
|
@ -65,11 +65,12 @@ export class Gesture {
|
|||||||
this._hammer.destroy();
|
this._hammer.destroy();
|
||||||
}
|
}
|
||||||
this._callbacks = {};
|
this._callbacks = {};
|
||||||
|
this._hammer = null;
|
||||||
this.isListening = false;
|
this.isListening = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
destroy() {
|
destroy() {
|
||||||
this.unlisten();
|
this.unlisten();
|
||||||
this._hammer = this.element = this._options = null;
|
this.element = this._options = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user