Last active
December 21, 2015 23:39
-
-
Save juandopazo/6384086 to your computer and use it in GitHub Desktop.
Uploader queue fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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