fix(form-registrar-mixin): fix typo

This commit is contained in:
JaySunSyn 2019-10-13 13:15:32 +02:00
parent 3196ec4f00
commit 2d45e65926

View file

@ -25,7 +25,7 @@ export const FormRegistrarMixin = dedupeMixin(
super(); super();
this.formElements = []; this.formElements = [];
this.__readyForRegistration = false; this.__readyForRegistration = false;
this.__hasBeenRenedered = false; this.__hasBeenRendered = false;
this.registrationReady = new Promise(resolve => { this.registrationReady = new Promise(resolve => {
this.__resolveRegistrationReady = resolve; this.__resolveRegistrationReady = resolve;
}); });
@ -39,8 +39,8 @@ export const FormRegistrarMixin = dedupeMixin(
super.connectedCallback(); super.connectedCallback();
} }
formRegistrarManager.add(this); formRegistrarManager.add(this);
if (this.__hasBeenRenedered) { if (this.__hasBeenRendered) {
formRegistrarManager.becomesReady(this); formRegistrarManager.becomesReady();
} }
} }
@ -59,8 +59,8 @@ export const FormRegistrarMixin = dedupeMixin(
super.firstUpdated(changedProperties); super.firstUpdated(changedProperties);
this.__resolveRegistrationReady(); this.__resolveRegistrationReady();
this.__readyForRegistration = true; this.__readyForRegistration = true;
formRegistrarManager.becomesReady(this); formRegistrarManager.becomesReady();
this.__hasBeenRenedered = true; this.__hasBeenRendered = true;
} }
addFormElement(child) { addFormElement(child) {