parent
2953ea10a7
commit
602836800b
@ -279,8 +279,7 @@ export abstract class AppView<T> {
|
|||||||
|
|
||||||
detectChanges(throwOnChange: boolean): void {
|
detectChanges(throwOnChange: boolean): void {
|
||||||
var s = _scope_check(this.clazz);
|
var s = _scope_check(this.clazz);
|
||||||
if (this.cdMode === ChangeDetectionStrategy.Detached ||
|
if (this.cdMode === ChangeDetectionStrategy.Checked ||
|
||||||
this.cdMode === ChangeDetectionStrategy.Checked ||
|
|
||||||
this.cdState === ChangeDetectorState.Errored)
|
this.cdState === ChangeDetectorState.Errored)
|
||||||
return;
|
return;
|
||||||
if (this.destroyed) {
|
if (this.destroyed) {
|
||||||
@ -304,13 +303,17 @@ export abstract class AppView<T> {
|
|||||||
|
|
||||||
detectContentChildrenChanges(throwOnChange: boolean) {
|
detectContentChildrenChanges(throwOnChange: boolean) {
|
||||||
for (var i = 0; i < this.contentChildren.length; ++i) {
|
for (var i = 0; i < this.contentChildren.length; ++i) {
|
||||||
this.contentChildren[i].detectChanges(throwOnChange);
|
var child = this.contentChildren[i];
|
||||||
|
if (child.cdMode === ChangeDetectionStrategy.Detached) continue;
|
||||||
|
child.detectChanges(throwOnChange);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
detectViewChildrenChanges(throwOnChange: boolean) {
|
detectViewChildrenChanges(throwOnChange: boolean) {
|
||||||
for (var i = 0; i < this.viewChildren.length; ++i) {
|
for (var i = 0; i < this.viewChildren.length; ++i) {
|
||||||
this.viewChildren[i].detectChanges(throwOnChange);
|
var child = this.viewChildren[i];
|
||||||
|
if (child.cdMode === ChangeDetectionStrategy.Detached) continue;
|
||||||
|
child.detectChanges(throwOnChange);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user