Skip to content

Instantly share code, notes, and snippets.

@juandopazo
Last active December 21, 2015 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juandopazo/6384086 to your computer and use it in GitHub Desktop.
Save juandopazo/6384086 to your computer and use it in GitHub Desktop.
Uploader queue fix
uploader.after('uploadcancel', function () {
// Uploader is currently only looking at two possibilities when
// calling uploadThese(): if there's no queue or if the queue is in
// progress. After cancelling if there are still items int he queue
// everything works fine, but if there aren't any the queue stays
// there stuck in an UPLOADING state. To fix that, remove the
// queue object if empty
if (this.queue && !this.queue.queuedFiles.length) {
this.queue = null;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment