test(change_detection): add an integration test verifying that binding propagation config works

This commit is contained in:
vsavkin
2015-02-11 16:28:10 -08:00
parent 234e1eccca
commit 91fd5a69bf
5 changed files with 59 additions and 11 deletions

View File

@ -51,4 +51,12 @@ export class AbstractChangeDetector extends ChangeDetector {
children[i]._detectChanges(throwOnChange);
}
}
markPathToRootAsCheckOnce() {
var c = this;
while(isPresent(c) && c.mode != DETACHED) {
if (c.mode === CHECKED) c.mode = CHECK_ONCE;
c = c.parent;
}
}
}

View File

@ -214,12 +214,4 @@ export class ChangeDetectionUtil {
}
return updatedRecords;
}
static markPathToRootAsCheckOnce(cd:ChangeDetector) {
var c = cd;
while(isPresent(c) && c.mode != DETACHED) {
if (c.mode === CHECKED) c.mode = CHECK_ONCE;
c = c.parent;
}
}
}