Skip to content

Commit e70a2f2

Browse files
committed
fix(dom): remove methods is allowed on text nodes as well
Fixes angular#1473 Closes angular#1478
1 parent 97e6fb6 commit e70a2f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/angular2/src/dom/browser_adapter.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ class BrowserDomAdapter extends GenericBrowserDomAdapter {
157157
void replaceChild(Node el, Node newNode, Node oldNode) {
158158
oldNode.replaceWith(newNode);
159159
}
160-
Element remove(Element el) {
160+
ChildNode remove(ChildNode el) {
161161
return el..remove();
162162
}
163163
void insertBefore(Node el, node) {

0 commit comments

Comments
 (0)