[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;
};
+ // Check if current visibility settings match
+ $scope.checkVisibility = function (all, completed) {
+ return showAll ? all : (completed === showCompleted);
+ };
// Check if current visibility settings match
$scope.checkVisibility = function (all, completed) {
return showAll ? all : (completed === showCompleted);
};
// Toggle the completion state of a task
$scope.toggleCompletion = function (taskIndex) {