style(change detect): Fix typo unitialized => uninitialized
Closes #1928
This commit is contained in:
parent
05a1c6c183
commit
edfbc25768
|
@ -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<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 {
|
||||
|
|
|
@ -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]; }
|
||||
|
|
Loading…
Reference in New Issue