forked from mystiq/hydrogen-web
template view: remove type duplication
This commit is contained in:
parent
22df062bbb
commit
a52423856d
1 changed files with 1 additions and 1 deletions
|
@ -181,7 +181,7 @@ export class TemplateBuilder<T extends IObservableValue> {
|
||||||
this._templateView._addEventListener(node, name, fn, useCapture);
|
this._templateView._addEventListener(node, name, fn, useCapture);
|
||||||
}
|
}
|
||||||
|
|
||||||
_addAttributeBinding(node: Element, name: string, fn: (value: T) => boolean | string): void {
|
_addAttributeBinding(node: Element, name: string, fn: AttributeBinding<T>): void {
|
||||||
let prevValue: string | boolean | undefined = undefined;
|
let prevValue: string | boolean | undefined = undefined;
|
||||||
const binding = () => {
|
const binding = () => {
|
||||||
const newValue = fn(this._value);
|
const newValue = fn(this._value);
|
||||||
|
|
Loading…
Reference in a new issue