diff --git a/apps/files_external/js/rollingqueue.js b/apps/files_external/js/rollingqueue.js index 58cb0fb22f..53e11cb121 100644 --- a/apps/files_external/js/rollingqueue.js +++ b/apps/files_external/js/rollingqueue.js @@ -70,7 +70,7 @@ var RollingQueue = function (functionList, queueWindow, callback) { throw "functionList must be an array"; } - for (i = 0; i < this.queueWindow; i++) { + for (var i = 0; i < this.queueWindow; i++) { this.launchNext(); } }; @@ -134,4 +134,4 @@ if (!OCA.External.StatusManager) { OCA.External.StatusManager.RollingQueue = RollingQueue; -})(); \ No newline at end of file +})();