chore(animation): clearAsync on destroy, reset tmr each clear

This commit is contained in:
Adam Bradley
2016-02-21 21:47:52 -06:00
parent ea5172527b
commit 548b7d52d1
2 changed files with 3 additions and 3 deletions

View File

@ -56,8 +56,6 @@ export class Animation {
this._pFns = [];
this._fFns = [];
this._fOnceFns = [];
this._clearAsync();
}
element(ele: any): Animation {
@ -381,6 +379,7 @@ export class Animation {
if (this._tmr) {
this._unregTrans && this._unregTrans();
clearTimeout(this._tmr);
this._tmr = 0;
}
}
@ -722,6 +721,7 @@ export class Animation {
}
}
this._clearAsync();
this._reset();
}

View File

@ -31,7 +31,7 @@ export class Gesture {
this._options = opts;
}
options(opts = {}) {
options(opts: any) {
assign(this._options, opts);
}