Chromium Code Reviews| 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 d5749c68bd93b4fcb3c141cfa8160a0674ec9a05..2b1cd7688e039e932811153b279a68c3ced68206 100644 |
| --- a/tools/dom/templates/html/impl/impl_Node.darttemplate |
| +++ b/tools/dom/templates/html/impl/impl_Node.darttemplate |
| @@ -90,6 +90,14 @@ $endif |
| return result; |
| } |
| + void remove(Object object) { |
|
floitsch
2013/01/17 13:36:58
Why doesn't this class need the other methods? Is
Lasse Reichstein Nielsen
2013/01/18 11:41:48
Good question. I can't remember why I didn't add t
|
| + if (object is! Node) return; |
| + Node node = object; |
| + if (!identical(this, node.parentNode)) return; |
| + _this.$dom_removeChild(node); |
| + } |
| + |
| + |
| void clear() { |
| _this.text = ''; |
| } |