Skip to content

Commit abf0340

Browse files
committed
make dart analyzer happy
1 parent 3c692a1 commit abf0340

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

modules/benchmarks/src/tree/tree_benchmark.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ class BaseLineTreeComponent {
230230
value:BaseLineInterpolation;
231231
left:BaseLineIf;
232232
right:BaseLineIf;
233+
element:Element;
233234
constructor(element) {
234235
this.element = element;
235236
var clone = DOM.clone(BASELINE_TREE_TEMPLATE.content.firstChild);
@@ -283,9 +284,9 @@ class BaseLineIf {
283284
this.component = null;
284285
}
285286
if (this.condition) {
286-
var element = DOM.clone(BASELINE_IF_TEMPLATE).content.firstChild;
287-
this.anchor.parentNode.insertBefore(element, this.anchor.nextSibling);
288-
this.component = new BaseLineTreeComponent(element.firstChild);
287+
var element = DOM.firstChild(DOM.clone(BASELINE_IF_TEMPLATE).content);
288+
this.anchor.parentNode.insertBefore(element, DOM.nextSibling(this.anchor));
289+
this.component = new BaseLineTreeComponent(DOM.firstChild(element));
289290
}
290291
}
291292
if (isPresent(this.component)) {

0 commit comments

Comments
 (0)