Commit 80a55a23 authored by Arthur Verschaeve's avatar Arthur Verschaeve

Code style tweaks to `firebase-angular` app

Makes JSCS and JSHint pass on `firebase-angular` app
parent dd1edae4
...@@ -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