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

Unified Diff: sdk/lib/html/src/_Collections.dart

Issue 11410086: Use iterator, moveNext(), current. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Created 8 years, 1 month 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: sdk/lib/html/src/_Collections.dart
diff --git a/sdk/lib/html/src/_Collections.dart b/sdk/lib/html/src/_Collections.dart
index 4bd77cd8e3453b32da11a7760c09f5a4cf8698ff..8423bbc0e7f7f10717ffef23fd4766be5a07d017 100644
--- a/sdk/lib/html/src/_Collections.dart
+++ b/sdk/lib/html/src/_Collections.dart
@@ -56,6 +56,6 @@ class _Collections {
}
static bool isEmpty(Iterable<Object> iterable) {
- return !iterable.iterator().hasNext;
+ return !iterable.iterator.moveNext();
}
}

Powered by Google App Engine
This is Rietveld 408576698