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

Unified Diff: pkg/observe/lib/src/list_diff.dart

Issue 132403010: big update to observe, template_binding, polymer (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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: pkg/observe/lib/src/list_diff.dart
diff --git a/pkg/observe/lib/src/list_diff.dart b/pkg/observe/lib/src/list_diff.dart
index 6acef8032772beea539fd53b45472993cb5d09df..67a9ff1fd1be692b05bb0bbc8d1bf42c4980344e 100644
--- a/pkg/observe/lib/src/list_diff.dart
+++ b/pkg/observe/lib/src/list_diff.dart
@@ -381,7 +381,7 @@ List<ListChangeRecord> _createInitialSplices(List<Object> list,
*/
List<ListChangeRecord> projectListSplices(List list,
List<ListChangeRecord> records) {
- if (records.length == 1) return records;
+ if (records.length <= 1) return records;
var splices = [];
for (var splice in _createInitialSplices(list, records)) {

Powered by Google App Engine
This is Rietveld 408576698