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