refactor(ChangeDetection): fix a typo

Closes #4675
This commit is contained in:
Victor Berchet 2015-10-11 22:30:47 -07:00
parent 0a940211d5
commit 91f71d2c3f
3 changed files with 4 additions and 4 deletions

View File

@ -30,7 +30,7 @@ export {
DebugContext, DebugContext,
ChangeDetectorGenConfig ChangeDetectorGenConfig
} from './interfaces'; } 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 {DynamicProtoChangeDetector} from './proto_change_detector';
export {JitProtoChangeDetector} from './jit_proto_change_detector'; export {JitProtoChangeDetector} from './jit_proto_change_detector';
export {BindingRecord, BindingTarget} from './binding_record'; export {BindingRecord, BindingTarget} from './binding_record';

View File

@ -41,7 +41,7 @@ export enum ChangeDetectionStrategy {
OnPushObserve OnPushObserve
} }
export var CHANGE_DECTION_STRATEGY_VALUES = [ export var CHANGE_DETECTION_STRATEGY_VALUES = [
ChangeDetectionStrategy.CheckOnce, ChangeDetectionStrategy.CheckOnce,
ChangeDetectionStrategy.Checked, ChangeDetectionStrategy.Checked,
ChangeDetectionStrategy.CheckAlways, ChangeDetectionStrategy.CheckAlways,

View File

@ -10,7 +10,7 @@ import {
import {StringMapWrapper} from 'angular2/src/core/facade/collection'; import {StringMapWrapper} from 'angular2/src/core/facade/collection';
import { import {
ChangeDetectionStrategy, ChangeDetectionStrategy,
CHANGE_DECTION_STRATEGY_VALUES CHANGE_DETECTION_STRATEGY_VALUES
} from 'angular2/src/core/change_detection/change_detection'; } from 'angular2/src/core/change_detection/change_detection';
import {ViewEncapsulation, VIEW_ENCAPSULATION_VALUES} from 'angular2/src/core/metadata/view'; import {ViewEncapsulation, VIEW_ENCAPSULATION_VALUES} from 'angular2/src/core/metadata/view';
import {CssSelector} from 'angular2/src/core/compiler/selector'; import {CssSelector} from 'angular2/src/core/compiler/selector';
@ -215,7 +215,7 @@ export class CompileDirectiveMetadata {
exportAs: data['exportAs'], exportAs: data['exportAs'],
type: isPresent(data['type']) ? CompileTypeMetadata.fromJson(data['type']) : data['type'], type: isPresent(data['type']) ? CompileTypeMetadata.fromJson(data['type']) : data['type'],
changeDetection: isPresent(data['changeDetection']) ? changeDetection: isPresent(data['changeDetection']) ?
CHANGE_DECTION_STRATEGY_VALUES[data['changeDetection']] : CHANGE_DETECTION_STRATEGY_VALUES[data['changeDetection']] :
data['changeDetection'], data['changeDetection'],
inputs: data['inputs'], inputs: data['inputs'],
outputs: data['outputs'], outputs: data['outputs'],