Skip to content

Commit edfbc25

Browse files
Tim Blasimhevery
authored andcommitted
style(change detect): Fix typo unitialized => uninitialized
Closes angular#1928
1 parent 05a1c6c commit edfbc25

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/angular2/src/change_detection/change_detection_jit_generator.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ ${type}.prototype.dehydrate = function() {
112112
${LOCALS_ACCESSOR} = null;
113113
}
114114
${type}.prototype.hydrated = function() {
115-
return ${CONTEXT_ACCESSOR} !== ${UTIL}.unitialized();
115+
return ${CONTEXT_ACCESSOR} !== ${UTIL}.uninitialized();
116116
}
117117
`;
118118
}
@@ -159,7 +159,7 @@ function pipeCheckTemplate(protoIndex: number, context: string, bindingPropagati
159159
lastInDirective: string): string {
160160
return `
161161
${CURRENT_PROTO} = ${PROTOS_ACCESSOR}[${protoIndex}];
162-
if (${pipe} === ${UTIL}.unitialized()) {
162+
if (${pipe} === ${UTIL}.uninitialized()) {
163163
${pipe} = ${PIPE_REGISTRY_ACCESSOR}.get('${pipeType}', ${context}, ${bindingPropagationConfig});
164164
} else if (!${pipe}.supports(${context})) {
165165
${pipe}.onDestroy();
@@ -207,7 +207,7 @@ function changeDefinitionsTemplate(names: List<any>): string {
207207
}
208208

209209
function fieldDefinitionsTemplate(names: List<any>): string {
210-
return names.map((n) => `${n} = ${UTIL}.unitialized();`).join("\n");
210+
return names.map((n) => `${n} = ${UTIL}.uninitialized();`).join("\n");
211211
}
212212

213213
function ifChangedGuardTemplate(changeNames: List<any>, body: string): string {

modules/angular2/src/change_detection/change_detection_util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function _simpleChange(previousValue, currentValue) {
4949
}
5050

5151
export class ChangeDetectionUtil {
52-
static unitialized() { return uninitialized; }
52+
static uninitialized() { return uninitialized; }
5353

5454
static arrayFn0() { return []; }
5555
static arrayFn1(a1) { return [a1]; }

0 commit comments

Comments
 (0)