fix es6 compilation for Element.remove.

Use DOM facade to delete an Element since the remove method is only in Dart.
This commit is contained in:
Alex Eagle 2015-02-25 15:56:08 -08:00
parent 642e9a36b7
commit 56906db4d5
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ class BaseLineIf {
if (this.condition !== newCondition) { if (this.condition !== newCondition) {
this.condition = newCondition; this.condition = newCondition;
if (isPresent(this.component)) { if (isPresent(this.component)) {
this.component.element.remove(); DOM.remove(this.component.element);
this.component = null; this.component = null;
} }
if (this.condition) { if (this.condition) {