Fix js error after implementing jshint

This commit is contained in:
Frederic Guillot 2017-01-02 20:13:12 -05:00
parent 9234657b17
commit 97bab4aaad
3 changed files with 4 additions and 1006 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -7,6 +7,7 @@ Miniflux.Feed = (function() {
var queue_length = 5;
var updateInterval = null;
var feeds = [];
return {
Update: function(feed, callback) {
@ -45,14 +46,14 @@ Miniflux.Feed = (function() {
request.send();
},
UpdateAll: function(nb_concurrent_requests) {
var feeds = Array.prototype.slice.call(document.querySelectorAll("article:not([data-feed-disabled])"));
feeds = Array.prototype.slice.call(document.querySelectorAll("article:not([data-feed-disabled])"));
// Check if a custom amount of concurrent requests was defined
if (nb_concurrent_requests) {
queue_length = nb_concurrent_requests;
}
updateInterval = setInterval(function() {
updateInterval = setInterval(function () {
while (feeds.length > 0 && queue.length < queue_length) {
var feed = feeds.shift();
queue.push(parseInt(feed.getAttribute('data-feed-id'), 10));