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

Unified Diff: samples/swarm/BiIterator.dart

Issue 11361190: a === b -> identical(a, b) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. 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
« no previous file with comments | « samples/swarm/App.dart ('k') | samples/swarm/DataSource.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/swarm/BiIterator.dart
diff --git a/samples/swarm/BiIterator.dart b/samples/swarm/BiIterator.dart
index 58779be7be5c8a3b4d18de95624153d964d16b1a..a6a97cd318937a6395c4f8092f14195a2fc6426b 100644
--- a/samples/swarm/BiIterator.dart
+++ b/samples/swarm/BiIterator.dart
@@ -58,7 +58,7 @@ class BiIterator<E> {
*/
void jumpToValue(E val) {
for (int i = 0; i < list.length; i++) {
- if (list[i] === val) {
+ if (identical(list[i], val)) {
currentIndex.value = i;
break;
}
« no previous file with comments | « samples/swarm/App.dart ('k') | samples/swarm/DataSource.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698