intact-angular
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -35,3 +35,3 @@ import Intact from 'intact/dist/index'; | ||
ngAfterViewChecked(): boolean; | ||
destroy(lastVNode: any, nextVNode: any, parentDom: any): void; | ||
destroy(lastVNode: any, nextVNode: any, parentDom: any, fromSelf: any): void; | ||
ngOnDestroy(): void; | ||
@@ -38,0 +38,0 @@ _normalizeProps(): { |
@@ -150,5 +150,5 @@ import * as tslib_1 from "tslib"; | ||
}; | ||
IntactAngular.prototype.destroy = function (lastVNode, nextVNode, parentDom) { | ||
if (this._isAngular) { | ||
// maybe the parent that is Angular element has been destroyed by Angular | ||
IntactAngular.prototype.destroy = function (lastVNode, nextVNode, parentDom, fromSelf) { | ||
if (!fromSelf && this._isAngular) { | ||
// maybe the parent which is an Angular element has been destroyed by Angular | ||
if (this._hasDestroyedByAngular) | ||
@@ -169,3 +169,3 @@ return; | ||
this._hasDestroyedByAngular = true; | ||
_super.prototype.destroy.call(this); | ||
this.destroy(null, null, null, true); | ||
}; | ||
@@ -172,0 +172,0 @@ IntactAngular.prototype._normalizeProps = function () { |
@@ -183,5 +183,5 @@ import Intact from 'intact/dist/index'; | ||
destroy(lastVNode, nextVNode, parentDom) { | ||
if (this._isAngular) { | ||
// maybe the parent that is Angular element has been destroyed by Angular | ||
destroy(lastVNode, nextVNode, parentDom, fromSelf) { | ||
if (!fromSelf && this._isAngular) { | ||
// maybe the parent which is an Angular element has been destroyed by Angular | ||
if (this._hasDestroyedByAngular) return; | ||
@@ -202,3 +202,3 @@ | ||
this._hasDestroyedByAngular = true; | ||
super.destroy(); | ||
this.destroy(null, null, null, true); | ||
} | ||
@@ -205,0 +205,0 @@ |
{ | ||
"name": "intact-angular", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"scripts": { | ||
@@ -34,3 +34,3 @@ "ng": "ng", | ||
"@angular-builders/custom-webpack": "^8.2.0", | ||
"@angular-devkit/build-angular": "~0.803.1", | ||
"@angular-devkit/build-angular": "^0.803.21", | ||
"@angular/animations": "~8.2.3", | ||
@@ -37,0 +37,0 @@ "@angular/cli": "~8.3.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
87951