From edfbc2576864967e2d51b473fe9fb1a63d7e82e4 Mon Sep 17 00:00:00 2001 From: Tim Blasi Date: Fri, 15 May 2015 13:48:55 -0700 Subject: [PATCH] style(change detect): Fix typo unitialized => uninitialized Closes #1928 --- .../src/change_detection/change_detection_jit_generator.ts | 6 +++--- .../angular2/src/change_detection/change_detection_util.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/angular2/src/change_detection/change_detection_jit_generator.ts b/modules/angular2/src/change_detection/change_detection_jit_generator.ts index 4c9fe0082d..02a2c36f84 100644 --- a/modules/angular2/src/change_detection/change_detection_jit_generator.ts +++ b/modules/angular2/src/change_detection/change_detection_jit_generator.ts @@ -112,7 +112,7 @@ ${type}.prototype.dehydrate = function() { ${LOCALS_ACCESSOR} = null; } ${type}.prototype.hydrated = function() { - return ${CONTEXT_ACCESSOR} !== ${UTIL}.unitialized(); + return ${CONTEXT_ACCESSOR} !== ${UTIL}.uninitialized(); } `; } @@ -159,7 +159,7 @@ function pipeCheckTemplate(protoIndex: number, context: string, bindingPropagati lastInDirective: string): string { return ` ${CURRENT_PROTO} = ${PROTOS_ACCESSOR}[${protoIndex}]; -if (${pipe} === ${UTIL}.unitialized()) { +if (${pipe} === ${UTIL}.uninitialized()) { ${pipe} = ${PIPE_REGISTRY_ACCESSOR}.get('${pipeType}', ${context}, ${bindingPropagationConfig}); } else if (!${pipe}.supports(${context})) { ${pipe}.onDestroy(); @@ -207,7 +207,7 @@ function changeDefinitionsTemplate(names: List): string { } function fieldDefinitionsTemplate(names: List): string { - return names.map((n) => `${n} = ${UTIL}.unitialized();`).join("\n"); + return names.map((n) => `${n} = ${UTIL}.uninitialized();`).join("\n"); } function ifChangedGuardTemplate(changeNames: List, body: string): string { diff --git a/modules/angular2/src/change_detection/change_detection_util.ts b/modules/angular2/src/change_detection/change_detection_util.ts index 758dac627c..57bb669e2a 100644 --- a/modules/angular2/src/change_detection/change_detection_util.ts +++ b/modules/angular2/src/change_detection/change_detection_util.ts @@ -49,7 +49,7 @@ function _simpleChange(previousValue, currentValue) { } export class ChangeDetectionUtil { - static unitialized() { return uninitialized; } + static uninitialized() { return uninitialized; } static arrayFn0() { return []; } static arrayFn1(a1) { return [a1]; }