Skip to content

Commit 687a98a

Browse files
refact: Remove node.getLocation() duplicate function call
1 parent 387108e commit 687a98a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dom-renderables/DOMElement.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ function DOMElement(node, options) {
7373

7474
DOMElement.Spec = function Spec(options) {
7575
options = options || {};
76-
7776
this.tagName = options.tagName ? options.tagName.toUpperCase() : 'DIV';
7877
this.renderSize = new Int32Array(2);
7978
this.classes = options.classes || {};
@@ -133,12 +132,12 @@ DOMElement.prototype.onUpdate = function onUpdate () {
133132

134133
if (len && node) {
135134
node.sendDrawCommand(Commands.WITH);
136-
node.sendDrawCommand(node.getLocation());
135+
node.sendDrawCommand(location);
137136

138137
while (len--) node.sendDrawCommand(queue.shift());
139138
if (this._requestRenderSize) {
140139
node.sendDrawCommand(Commands.DOM_RENDER_SIZE);
141-
node.sendDrawCommand(node.getLocation());
140+
node.sendDrawCommand(location);
142141
this._requestRenderSize = false;
143142
}
144143
}

0 commit comments

Comments
 (0)