Added more documentation to IgniteElement. Fixed ref function on IgniteTemplates accepting non function parameters.

This commit is contained in:
2021-12-28 22:32:19 -08:00
parent 645b0520b0
commit b87ea24fe6
2 changed files with 14 additions and 1 deletions

View File

@ -508,7 +508,7 @@ class IgniteTemplate {
if (refCallback instanceof IgniteProperty) {
this._callbacks.push(refCallback.attachOnChange((oldValue, newValue) => this.onRefChanged(refCallback, newValue)));
this._refs.push(element => refCallback.value = element);
} else {
} else if (refCallback instanceof Function) {
this._refs.push(refCallback);
}