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

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

Issue 14425003: Make List.remove return boolean. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 af1644763a7f2b71f4ede4194513b671918cbfbe..1d84f30f2c48f8ecc55f7de19152e50f4861bafb 100644
--- a/tools/dom/templates/html/impl/impl_Node.darttemplate
+++ b/tools/dom/templates/html/impl/impl_Node.darttemplate
@@ -106,11 +106,12 @@ $endif
return result;
}
- void remove(Object object) {
- if (object is! Node) return;
+ bool remove(Object object) {
+ if (object is! Node) return false;
Node node = object;
- if (!identical(_this, node.parentNode)) return;
+ if (!identical(_this, node.parentNode)) return false;
_this.$dom_removeChild(node);
+ return true;
}
void _filter(bool test(Node node), bool removeMatching) {
« no previous file with comments | « tools/dom/templates/html/impl/impl_Element.darttemplate ('k') | tools/dom/templates/immutable_list_mixin.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698