From e70a2f21dd22a58b6c5f9e5da8ceeebec483c91e Mon Sep 17 00:00:00 2001 From: Tobias Bosch Date: Tue, 21 Apr 2015 10:49:14 -0700 Subject: [PATCH] fix(dom): remove methods is allowed on text nodes as well Fixes #1473 Closes #1478 --- modules/angular2/src/dom/browser_adapter.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/angular2/src/dom/browser_adapter.dart b/modules/angular2/src/dom/browser_adapter.dart index fca1942793..d0f97d986c 100644 --- a/modules/angular2/src/dom/browser_adapter.dart +++ b/modules/angular2/src/dom/browser_adapter.dart @@ -157,7 +157,7 @@ class BrowserDomAdapter extends GenericBrowserDomAdapter { void replaceChild(Node el, Node newNode, Node oldNode) { oldNode.replaceWith(newNode); } - Element remove(Element el) { + ChildNode remove(ChildNode el) { return el..remove(); } void insertBefore(Node el, node) {