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

Unified Diff: sdk/lib/html/templates/html/impl/impl_Element.darttemplate

Issue 11269004: Change List.sort to not have a default parameter value. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reverted used of ?compare Created 8 years 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
« no previous file with comments | « sdk/lib/html/src/FilteredElementList.dart ('k') | sdk/lib/html/templates/html/impl/impl_Node.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/templates/html/impl/impl_Element.darttemplate
diff --git a/sdk/lib/html/templates/html/impl/impl_Element.darttemplate b/sdk/lib/html/templates/html/impl/impl_Element.darttemplate
index 0dadbe362579e09630bdb9d7a7e1ada3fad16fa1..aab5f014b9ca52dd8fdca8a33df7f541c1802639 100644
--- a/sdk/lib/html/templates/html/impl/impl_Element.darttemplate
+++ b/sdk/lib/html/templates/html/impl/impl_Element.darttemplate
@@ -103,7 +103,7 @@ class _ChildrenElementList implements List {
}
}
- void sort([Comparator compare = Comparable.compare]) {
+ void sort([int compare(Element a, Element b)]) {
throw new UnsupportedError('TODO(jacobr): should we impl?');
}
@@ -252,7 +252,7 @@ class _FrozenElementList implements List {
throw new UnsupportedError('');
}
- void sort([Comparator compare = Comparable.compare]) {
+ void sort([int compare(Element a, Element b)]) {
throw new UnsupportedError('');
}
« no previous file with comments | « sdk/lib/html/src/FilteredElementList.dart ('k') | sdk/lib/html/templates/html/impl/impl_Node.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698