diff --git a/lib/composite-disposable.js b/lib/composite-disposable.js index 495ec5e..69fe8c7 100644 --- a/lib/composite-disposable.js +++ b/lib/composite-disposable.js @@ -30,10 +30,10 @@ module.exports = class CompositeDisposable { */ // Public: Construct an instance, optionally with one or more disposables - constructor() { + constructor(...args) { this.disposed = false this.disposables = new Set() - for (let disposable of arguments) { + for (let disposable of args) { this.add(disposable) } }