forked from Archives/Athou_commafeed
don't display entries twice when refreshing during loading (fix #473)
This commit is contained in:
@@ -721,6 +721,9 @@ module.controller('FeedListCtrl', [
|
||||
}
|
||||
|
||||
var callback = function(data) {
|
||||
if (data.offset == 0) {
|
||||
$scope.entries = [];
|
||||
}
|
||||
for ( var i = 0; i < data.entries.length; i++) {
|
||||
$scope.entries.push(data.entries[i]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user