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

Unified Diff: samples/third_party/todomvc/web/model.dart

Issue 13872007: Refactor removeRange. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebuild dom. 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: samples/third_party/todomvc/web/model.dart
diff --git a/samples/third_party/todomvc/web/model.dart b/samples/third_party/todomvc/web/model.dart
index b3bf404abd3184c3e251caed5ae2cdd9b88d64a6..adc26ebbd60235ccce3f1a1308608e13a2e0c917 100644
--- a/samples/third_party/todomvc/web/model.dart
+++ b/samples/third_party/todomvc/web/model.dart
@@ -29,7 +29,7 @@ class AppModel {
void removeTodo(Todo todo) {
var index = todos.indexOf(todo);
if (index != -1) {
- todos.removeRange(index, 1);
+ todos.removeRange(index, index + 1);
}
}

Powered by Google App Engine
This is Rietveld 408576698