-// Method about queues
-
-DDFileUploader.prototype.previewQueuePush = function(slide) {
- this.previewQueue.push(slide);
- if (!this._previewQueueRunning) {
- this.startPreviewQueue();
- }
-};
-
-DDFileUploader.prototype.startPreviewQueue = function() {
- this._previewQueueRunning = true;
- this.previewQueueLoadNext();
-};
-
-DDFileUploader.prototype.previewQueueLoadNext = function() {
- if (this.previewQueue.length && this.previewsLoaded < MAX_PREVIEW) {
- var slide = this.previewQueue.shift();
- this.previewUploadedImage(slide);
- this.previewsLoaded++;
- }
- else {
- this._previewQueueRunning = false;
- }
-};
-
-DDFileUploader.prototype.uploadQueuePush = function(slide) {