style(change detect): Fix typo unitialized => uninitialized

Closes #1928
This commit is contained in:
Tim Blasi 2015-05-15 13:48:55 -07:00 committed by Misko Hevery
parent 05a1c6c183
commit edfbc25768
2 changed files with 4 additions and 4 deletions

View File

@ -112,7 +112,7 @@ ${type}.prototype.dehydrate = function() {
${LOCALS_ACCESSOR} = null; ${LOCALS_ACCESSOR} = null;
} }
${type}.prototype.hydrated = function() { ${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 { lastInDirective: string): string {
return ` return `
${CURRENT_PROTO} = ${PROTOS_ACCESSOR}[${protoIndex}]; ${CURRENT_PROTO} = ${PROTOS_ACCESSOR}[${protoIndex}];
if (${pipe} === ${UTIL}.unitialized()) { if (${pipe} === ${UTIL}.uninitialized()) {
${pipe} = ${PIPE_REGISTRY_ACCESSOR}.get('${pipeType}', ${context}, ${bindingPropagationConfig}); ${pipe} = ${PIPE_REGISTRY_ACCESSOR}.get('${pipeType}', ${context}, ${bindingPropagationConfig});
} else if (!${pipe}.supports(${context})) { } else if (!${pipe}.supports(${context})) {
${pipe}.onDestroy(); ${pipe}.onDestroy();
@ -207,7 +207,7 @@ function changeDefinitionsTemplate(names: List<any>): string {
} }
function fieldDefinitionsTemplate(names: List<any>): string { function fieldDefinitionsTemplate(names: List<any>): string {
return names.map((n) => `${n} = ${UTIL}.unitialized();`).join("\n"); return names.map((n) => `${n} = ${UTIL}.uninitialized();`).join("\n");
} }
function ifChangedGuardTemplate(changeNames: List<any>, body: string): string { function ifChangedGuardTemplate(changeNames: List<any>, body: string): string {

View File

@ -49,7 +49,7 @@ function _simpleChange(previousValue, currentValue) {
} }
export class ChangeDetectionUtil { export class ChangeDetectionUtil {
static unitialized() { return uninitialized; } static uninitialized() { return uninitialized; }
static arrayFn0() { return []; } static arrayFn0() { return []; }
static arrayFn1(a1) { return [a1]; } static arrayFn1(a1) { return [a1]; }