Skip to content

Commit

Permalink
Bind to out destroy method, not destructor's.
Browse files Browse the repository at this point in the history
  • Loading branch information
flatheadmill committed Feb 13, 2017
1 parent be7e05b commit 265a49f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function Staccato (stream, opening) {
this._destructor = new Destructor(interrupt)
this._listeners = {
open: this._open.bind(this),
error: this._destructor.destroy.bind(this._destructor)
error: this.destroy.bind(this)
}
this._janitors = {
open: { object: this, method: '_open' },
Expand Down

0 comments on commit 265a49f

Please sign in to comment.