From 56906db4d58d4f7009dd9d3c3d7aee16714c97b1 Mon Sep 17 00:00:00 2001 From: Alex Eagle Date: Wed, 25 Feb 2015 15:56:08 -0800 Subject: [PATCH] fix es6 compilation for Element.remove. Use DOM facade to delete an Element since the remove method is only in Dart. --- modules/benchmarks/src/tree/tree_benchmark.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/benchmarks/src/tree/tree_benchmark.js b/modules/benchmarks/src/tree/tree_benchmark.js index a66d4b47ba..58269ca489 100644 --- a/modules/benchmarks/src/tree/tree_benchmark.js +++ b/modules/benchmarks/src/tree/tree_benchmark.js @@ -325,7 +325,7 @@ class BaseLineIf { if (this.condition !== newCondition) { this.condition = newCondition; if (isPresent(this.component)) { - this.component.element.remove(); + DOM.remove(this.component.element); this.component = null; } if (this.condition) {