Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Application fixed & cleaned from warnings

  • Loading branch information...
commit b2c80af75494841d7cdc60fbbad429aa91070264 1 parent 94bbf15
Mathieu Lorber MathieuLorber authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 labs/architecture-examples/dart/web/dart/TodoApp.dart
6 labs/architecture-examples/dart/web/dart/TodoApp.dart
View
@@ -52,9 +52,8 @@ class TodoApp {
});
checkAllCheckboxElement.on.click.add((Event e) {
- InputElement target = e.srcElement;
for (TodoWidget todoWidget in todoWidgets) {
- if (todoWidget.todo.completed != target.checked) {
+ if (todoWidget.todo.completed != checkAllCheckboxElement.checked) {
todoWidget.toggle();
}
}
@@ -100,7 +99,7 @@ class TodoApp {
}
checkAllCheckboxElement.checked = (complete == todoWidgets.length);
var left = todoWidgets.length - complete;
- countElement.innerHTML = '<b>${left}</b> item${left != 1 ? 's' : ''} left';
+ countElement.innerHtml = '<b>${left}</b> item${left != 1 ? 's' : ''} left';
if (complete == 0) {
clearCompletedElement.style.display = 'none';
} else {
@@ -124,6 +123,7 @@ class TodoApp {
break;
default:
showAll();
+ return;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.