Skip to content

Commit

Permalink
fix: revert back hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 2, 2019
1 parent f5a1047 commit 07f52dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hable.js
Expand Up @@ -5,6 +5,10 @@ export default class Hookable {
this._logger = logger
this._hooks = {}
this._deprecatedHooks = {}

// Allow destructuring hook and callHook functions out of instance object
this.hook = this.hook.bind(this)
this.callHook = this.callHook.bind(this)
}

hook (name, fn) {
Expand Down

1 comment on commit 07f52dc

@pimlie
Copy link

@pimlie pimlie commented on 07f52dc Sep 2, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aha, thats what it was for. Sorry! ;)

Please sign in to comment.