Browse Source

Whuahhahha..

pull/18/head
Simon Eisenmann 12 years ago
parent
commit
3016363fb6
  1. 2
      static/js/services/filedownload.js

2
static/js/services/filedownload.js

@ -182,7 +182,7 @@ define(["jquery", "underscore"], function($, _) {
console.log("Job done", job, this.end, this.chunk); console.log("Job done", job, this.end, this.chunk);
var idx = this.jobs.indexOf(job); 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); this.jobs.splice(idx, 1);
}; };
if (this.chunk >= this.end && this.jobs.length === 0) { if (this.chunk >= this.end && this.jobs.length === 0) {

Loading…
Cancel
Save