From 27a0c15942e8d953571d545eff79652d4e98d924 Mon Sep 17 00:00:00 2001 From: Fabien Motte Date: Wed, 8 Feb 2017 15:45:58 +0100 Subject: [PATCH] feat: add dispatch number getter --- src/index.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/index.js b/src/index.js index f772902..1442643 100644 --- a/src/index.js +++ b/src/index.js @@ -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 *