* Registers a filter that will be executed for each file added to the queue. * If callback returns false, file will not be added. * * Callback receives two arguments: a value for the filter as it was specified in settings.filters * and a file to be filtered. Callback is executed in the conte
(name, cb)
| 4281 | * @param {String} cb Callback - the actual routine that every added file must pass |
| 4282 | */ |
| 4283 | function addFileFilter(name, cb) { |
| 4284 | fileFilters[name] = cb; |
| 4285 | } |
| 4286 | |
| 4287 | |
| 4288 | /** |