actually use the function argument

This commit is contained in:
Athou
2013-07-08 01:40:01 +02:00
parent 44fbaf6587
commit 390531ea99

View File

@@ -755,16 +755,16 @@ function($scope, $stateParams, $http, $route, $window, EntryService, SettingsSer
$scope.markUpTo = function(entry) { $scope.markUpTo = function(entry) {
var entries = []; var entries = [];
for (var i = 0; i < $scope.entries.length; i++) { for (var i = 0; i < $scope.entries.length; i++) {
var entry = $scope.entries[i]; var e = $scope.entries[i];
if (!entry.read) { if (!e.read) {
entries.push({ entries.push({
id : entry.id, id : e.id,
feedId : entry.feedId, feedId : e.feedId,
read: true read: true
}); });
entry.read = true; e.read = true;
} }
if (entry == $scope.current) { if (e == entry) {
break; break;
} }
} }