refactor(render): add DomElement
Replaces the multiple arrays of `DomView` by a single array with `DomElement`s. Note: this commit does not show a performance regression (tested against the tree benchmark locally).
This commit is contained in:
@ -23,7 +23,9 @@ export class ElementRef {
|
||||
// We need a more general way to read/write to the DOM element
|
||||
// via a proper abstraction in the render layer
|
||||
get domElement() {
|
||||
return resolveInternalDomView(this.parentView.render).boundElements[this.boundElementIndex];
|
||||
return resolveInternalDomView(this.parentView.render)
|
||||
.boundElements[this.boundElementIndex]
|
||||
.element;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user