From 91f71d2c3f8e2a8f1a62710364459e2cd4cad65d Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Sun, 11 Oct 2015 22:30:47 -0700 Subject: [PATCH] refactor(ChangeDetection): fix a typo Closes #4675 --- .../angular2/src/core/change_detection/change_detection.ts | 2 +- modules/angular2/src/core/change_detection/constants.ts | 2 +- modules/angular2/src/core/compiler/directive_metadata.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/angular2/src/core/change_detection/change_detection.ts b/modules/angular2/src/core/change_detection/change_detection.ts index 7277c2150c..9d5d2c9438 100644 --- a/modules/angular2/src/core/change_detection/change_detection.ts +++ b/modules/angular2/src/core/change_detection/change_detection.ts @@ -30,7 +30,7 @@ export { DebugContext, ChangeDetectorGenConfig } from './interfaces'; -export {ChangeDetectionStrategy, CHANGE_DECTION_STRATEGY_VALUES} from './constants'; +export {ChangeDetectionStrategy, CHANGE_DETECTION_STRATEGY_VALUES} from './constants'; export {DynamicProtoChangeDetector} from './proto_change_detector'; export {JitProtoChangeDetector} from './jit_proto_change_detector'; export {BindingRecord, BindingTarget} from './binding_record'; diff --git a/modules/angular2/src/core/change_detection/constants.ts b/modules/angular2/src/core/change_detection/constants.ts index ae1f4b849c..ef50a70e68 100644 --- a/modules/angular2/src/core/change_detection/constants.ts +++ b/modules/angular2/src/core/change_detection/constants.ts @@ -41,7 +41,7 @@ export enum ChangeDetectionStrategy { OnPushObserve } -export var CHANGE_DECTION_STRATEGY_VALUES = [ +export var CHANGE_DETECTION_STRATEGY_VALUES = [ ChangeDetectionStrategy.CheckOnce, ChangeDetectionStrategy.Checked, ChangeDetectionStrategy.CheckAlways, diff --git a/modules/angular2/src/core/compiler/directive_metadata.ts b/modules/angular2/src/core/compiler/directive_metadata.ts index a0e07cce26..b4f94df8be 100644 --- a/modules/angular2/src/core/compiler/directive_metadata.ts +++ b/modules/angular2/src/core/compiler/directive_metadata.ts @@ -10,7 +10,7 @@ import { import {StringMapWrapper} from 'angular2/src/core/facade/collection'; import { ChangeDetectionStrategy, - CHANGE_DECTION_STRATEGY_VALUES + CHANGE_DETECTION_STRATEGY_VALUES } from 'angular2/src/core/change_detection/change_detection'; import {ViewEncapsulation, VIEW_ENCAPSULATION_VALUES} from 'angular2/src/core/metadata/view'; import {CssSelector} from 'angular2/src/core/compiler/selector'; @@ -215,7 +215,7 @@ export class CompileDirectiveMetadata { exportAs: data['exportAs'], type: isPresent(data['type']) ? CompileTypeMetadata.fromJson(data['type']) : data['type'], changeDetection: isPresent(data['changeDetection']) ? - CHANGE_DECTION_STRATEGY_VALUES[data['changeDetection']] : + CHANGE_DETECTION_STRATEGY_VALUES[data['changeDetection']] : data['changeDetection'], inputs: data['inputs'], outputs: data['outputs'],