Webpack build for branch master: 229eb2be2d

This commit is contained in:
Travis CI 2017-12-31 19:35:41 +00:00
parent 5b0382622d
commit f1820a5490
2 changed files with 11 additions and 10 deletions

View file

@ -8367,17 +8367,18 @@ class Collector extends EventEmitter {
*/
handleCollect(...args) {
const collect = this.collect(...args);
if (!collect || !this.filter(...args, this.collected)) return;
this.collected.set(collect.key, collect.value);
if (collect && this.filter(...args, this.collected)) {
this.collected.set(collect.key, collect.value);
/**
* Emitted whenever an element is collected.
* @event Collector#collect
* @param {*} element The element that got collected
* @param {...*} args The arguments emitted by the listener
*/
this.emit('collect', collect.value, ...args);
/**
* Emitted whenever an element is collected.
* @event Collector#collect
* @param {*} element The element that got collected
* @param {...*} args The arguments emitted by the listener
*/
this.emit('collect', collect.value, ...args);
}
this.checkEnd();
}

File diff suppressed because one or more lines are too long