diff --git a/Observe.ts b/Observe.ts index 236c17d..6a044e6 100644 --- a/Observe.ts +++ b/Observe.ts @@ -74,6 +74,13 @@ export default class Observe { const success = dispatchEvent(this.currentEvent); } + /** + * Returns the event ID or type used when dispatching an event.. This can be used if you want to create your own listeners + */ + public getEventID(): string{ + return this.eventID; + } + /** * Stops the current event. * Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.