Skip to content

Commit

Permalink
feat(): add firehose call to .off.all()
Browse files Browse the repository at this point in the history
  • Loading branch information
crobinson42 committed Apr 17, 2017
1 parent 61e9d8e commit 08f04b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
.idea
coverage/
coverage/
npm-debug.log
1 change: 1 addition & 0 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class EventSky {
*/
allOff (eventName) {
delete this.events[eventName]
this._firehose(`.off.all("${eventName}") removed all event handlers`)

this.events[eventName] = this._utils.createNewEventMap()

Expand Down

0 comments on commit 08f04b0

Please sign in to comment.