From 3016363fb6d3260062efde787ac7ecd25144ebfb Mon Sep 17 00:00:00 2001 From: Simon Eisenmann Date: Tue, 8 Apr 2014 19:37:59 +0200 Subject: [PATCH] Whuahhahha.. --- static/js/services/filedownload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/services/filedownload.js b/static/js/services/filedownload.js index 0965d09a..770b5ef1 100644 --- a/static/js/services/filedownload.js +++ b/static/js/services/filedownload.js @@ -182,7 +182,7 @@ define(["jquery", "underscore"], function($, _) { console.log("Job done", job, this.end, this.chunk); var idx = this.jobs.indexOf(job); - if (~idx) { + if (~idx) { // Yay i love fancy code which is hard to understand! this.jobs.splice(idx, 1); }; if (this.chunk >= this.end && this.jobs.length === 0) {