Effective default queue limit of 0

If you don't set the queueLimit manually, then it's undefined, so the queueLimitFilter never allows any files by default. I modified the filter to ignore the queueLimit if it's undefined.
This commit was merged in pull request #58.
This commit is contained in:
Ben Sgroi
2016-02-12 11:14:59 -08:00
parent 02209aabf5
commit a122d6703d

View File

@@ -225,7 +225,7 @@ export class FileUploader {
}
private _queueLimitFilter() {
return this.queue.length < this.queueLimit;
return this.queueLimit === undefined || this.queue.length < this.queueLimit;
}
private _isValidFile(file:any, filters:any, options:any) {