Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Handlers (handling functions) are the subscribers of your
Event
object. The invocation context of a function is a value you get when you referencethis
inside the function. The requirement is,this
inside the handlers should point tothis
of theemit
method, i.e. the instance of theEvent
object. The error tells you it's not happening in your case.This functionality is needed so you could subscribe and unsubscribe to the event from within your handlers, like this: