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) {