chore(gesture): null hammer on unlisten

This commit is contained in:
Adam Bradley
2016-02-21 21:35:24 -06:00
parent ed85ab9863
commit ea5172527b
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<ion-navbar *navbar>
<button [menuToggle]="activeMenu">
<button menuToggle>
<ion-icon name="menu"></ion-icon>
</button>
<ion-title>

View File

@ -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;
}
}