Skip to content

Commit 9908def

Browse files
committed
fix(bootstrap): temporary disable jit change detection because of a bug in handling pure functions
1 parent 552d1ed commit 9908def

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

modules/angular2/src/core/application.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ var _rootBindings = [bind(Reflector).toValue(reflector), TestabilityRegistry];
6969

7070
function _injectorBindings(appComponentType): List<Type | Binding | List<any>> {
7171
var bestChangeDetection: Type = DynamicChangeDetection;
72-
if (PreGeneratedChangeDetection.isSupported()) {
73-
bestChangeDetection = PreGeneratedChangeDetection;
74-
} else if (JitChangeDetection.isSupported()) {
75-
bestChangeDetection = JitChangeDetection;
76-
}
72+
// Re-enable once all e2e tests pass
73+
// if (PreGeneratedChangeDetection.isSupported()) {
74+
// bestChangeDetection = PreGeneratedChangeDetection;
75+
//} else if (JitChangeDetection.isSupported()) {
76+
// bestChangeDetection = JitChangeDetection;
77+
//}
7778
return [
7879
bind(DOCUMENT_TOKEN)
7980
.toValue(DOM.defaultDoc()),

modules/examples/e2e_test/model_driven_forms/model_driven_forms_spec.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
library examples.e2e_test.hello_world.template_driven_forms_spec;
1+
library examples.e2e_test.hello_world.model_driven_forms_spec;
22

33
main() {
44

0 commit comments

Comments
 (0)