From abf03401dfde2f8580596c090ae0ecec90ec060c Mon Sep 17 00:00:00 2001 From: vsavkin Date: Tue, 13 Jan 2015 11:14:05 -0800 Subject: [PATCH] make dart analyzer happy --- modules/benchmarks/src/tree/tree_benchmark.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/benchmarks/src/tree/tree_benchmark.js b/modules/benchmarks/src/tree/tree_benchmark.js index de5677bc31..26550b7f98 100644 --- a/modules/benchmarks/src/tree/tree_benchmark.js +++ b/modules/benchmarks/src/tree/tree_benchmark.js @@ -230,6 +230,7 @@ class BaseLineTreeComponent { value:BaseLineInterpolation; left:BaseLineIf; right:BaseLineIf; + element:Element; constructor(element) { this.element = element; var clone = DOM.clone(BASELINE_TREE_TEMPLATE.content.firstChild); @@ -283,9 +284,9 @@ class BaseLineIf { this.component = null; } if (this.condition) { - var element = DOM.clone(BASELINE_IF_TEMPLATE).content.firstChild; - this.anchor.parentNode.insertBefore(element, this.anchor.nextSibling); - this.component = new BaseLineTreeComponent(element.firstChild); + var element = DOM.firstChild(DOM.clone(BASELINE_IF_TEMPLATE).content); + this.anchor.parentNode.insertBefore(element, DOM.nextSibling(this.anchor)); + this.component = new BaseLineTreeComponent(DOM.firstChild(element)); } } if (isPresent(this.component)) {