Skip to content

Commit

Permalink
feat: add dispatch number getter
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Motte committed Feb 8, 2017
1 parent f7ace3d commit 27a0c15
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,15 @@ class Signal {
return this._listeners.length
}

/**
* Get the number of dispatch
*
* @returns {number} Dispatch number
*/
getDispatchNb () {
return this._dispatchNb
}

/**
* Get listener index
*
Expand Down

0 comments on commit 27a0c15

Please sign in to comment.