Commit 7c39fcf2 authored by TasteBot's avatar TasteBot

update the build files for gh-pages [ci skip]

parent ab2c090c
...@@ -72,15 +72,15 @@ todomvc.controller('TodoCtrl', function TodoCtrl($scope, $location, $firebaseArr ...@@ -72,15 +72,15 @@ todomvc.controller('TodoCtrl', function TodoCtrl($scope, $location, $firebaseArr
}; };
$scope.clearCompletedTodos = function () { $scope.clearCompletedTodos = function () {
$scope.todos.forEach(function(todo) { $scope.todos.forEach(function (todo) {
if(todo.completed) { if (todo.completed) {
$scope.removeTodo(todo); $scope.removeTodo(todo);
} }
}); });
}; };
$scope.markAll = function (allCompleted) { $scope.markAll = function (allCompleted) {
$scope.todos.forEach(function(todo) { $scope.todos.forEach(function (todo) {
todo.completed = allCompleted; todo.completed = allCompleted;
$scope.todos.$save(todo); $scope.todos.$save(todo);
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment