From 9908def857f52803712dc5ae2def2f6c299eba6c Mon Sep 17 00:00:00 2001 From: vsavkin Date: Sat, 13 Jun 2015 15:26:59 -0700 Subject: [PATCH] fix(bootstrap): temporary disable jit change detection because of a bug in handling pure functions --- modules/angular2/src/core/application.ts | 11 ++++++----- .../model_driven_forms/model_driven_forms_spec.dart | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/modules/angular2/src/core/application.ts b/modules/angular2/src/core/application.ts index 3157a752f9..9e81c1d19a 100644 --- a/modules/angular2/src/core/application.ts +++ b/modules/angular2/src/core/application.ts @@ -69,11 +69,12 @@ var _rootBindings = [bind(Reflector).toValue(reflector), TestabilityRegistry]; function _injectorBindings(appComponentType): List> { var bestChangeDetection: Type = DynamicChangeDetection; - if (PreGeneratedChangeDetection.isSupported()) { - bestChangeDetection = PreGeneratedChangeDetection; - } else if (JitChangeDetection.isSupported()) { - bestChangeDetection = JitChangeDetection; - } + // Re-enable once all e2e tests pass + // if (PreGeneratedChangeDetection.isSupported()) { + // bestChangeDetection = PreGeneratedChangeDetection; + //} else if (JitChangeDetection.isSupported()) { + // bestChangeDetection = JitChangeDetection; + //} return [ bind(DOCUMENT_TOKEN) .toValue(DOM.defaultDoc()), diff --git a/modules/examples/e2e_test/model_driven_forms/model_driven_forms_spec.dart b/modules/examples/e2e_test/model_driven_forms/model_driven_forms_spec.dart index 9379e996b5..a102b6468b 100644 --- a/modules/examples/e2e_test/model_driven_forms/model_driven_forms_spec.dart +++ b/modules/examples/e2e_test/model_driven_forms/model_driven_forms_spec.dart @@ -1,4 +1,4 @@ -library examples.e2e_test.hello_world.template_driven_forms_spec; +library examples.e2e_test.hello_world.model_driven_forms_spec; main() {