[Tutorials] Remove diff markings in TodoController

This commit is contained in:
Victor Woeltjen 2016-05-27 11:30:53 -07:00
parent 7aa034ce23
commit 1954d98628

View File

@ -45,10 +45,10 @@ define(function () {
showCompleted = completed; showCompleted = completed;
}; };
+ // Check if current visibility settings match // Check if current visibility settings match
+ $scope.checkVisibility = function (all, completed) { $scope.checkVisibility = function (all, completed) {
+ return showAll ? all : (completed === showCompleted); return showAll ? all : (completed === showCompleted);
+ }; };
// Toggle the completion state of a task // Toggle the completion state of a task
$scope.toggleCompletion = function (taskIndex) { $scope.toggleCompletion = function (taskIndex) {