mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
actually use the function argument
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user