-// 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();
- console.info('previewQueueLoadNext', this.previewsLoaded, slide.file.name);
- this.previewUploadedImage(slide);
- this.previewsLoaded++;
- }
- else {
- console.warn('previewQueueLoadNext skipped', this.previewsLoaded);
- this._previewQueueRunning = false;
- }
-};
-
-DDFileUploader.prototype.uploadQueuePush = function(slide) {