Merge pull request #2315 from NativeScript/raikov/fix-2209

Fixed: CSS-Animation w/ iteration-count:infinite is never reset causing out of memory
This commit is contained in:
tzraikov
2016-06-17 18:07:24 +03:00
committed by GitHub

View File

@ -97,6 +97,7 @@ export class View extends viewCommon.View {
public onUnloaded() {
super.onUnloaded();
this._unregisterAllAnimations();
if (this._nativeView && this._nativeView.setOnTouchListener) {
this._nativeView.setOnTouchListener(null);
this.touchListenerIsSet = false;