Index: tools/dom/templates/html/impl/impl_Node.darttemplate |
diff --git a/tools/dom/templates/html/impl/impl_Node.darttemplate b/tools/dom/templates/html/impl/impl_Node.darttemplate |
index b96554051c0a7456ef2a49aa495e44873e46e96d..21069d6e6c45744e44be33fcf4031a20a5674b4c 100644 |
--- a/tools/dom/templates/html/impl/impl_Node.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_Node.darttemplate |
@@ -90,6 +90,29 @@ $endif |
return result; |
} |
+ void remove(Object object) { |
+ if (object is! Node) return; |
+ Node node = object; |
+ if (!identical(this, node.parentNode)) return; |
+ _this.$dom_removeChild(node); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ IterableMixinWorkaround.removeAll(this, elements); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ IterableMixinWorkaround.retainAll(this, elements); |
+ } |
+ |
+ void removeMatching(bool test(Node node)) { |
+ IterableMixinWorkaround.removeMatching(this, test); |
+ } |
+ |
+ void retainMatching(bool test(Node node)) { |
+ IterableMixinWorkaround.retainMatching(this, test); |
+ } |
+ |
void clear() { |
_this.text = ''; |
} |