Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: tools/dom/templates/html/impl/impl_Node.darttemplate

Issue 11931034: Add methods to Collection. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Also on DoubleLinkedQueue. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 = '';
}

Powered by Google App Engine
This is Rietveld 408576698