Added more documentation to IgniteElement. Fixed ref function on IgniteTemplates accepting non function parameters.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user