FTN15: Native Event API
Version: 1.0
Date: 2015-01-19
Copyright: 2014 FutoIn Project (http://futoin.org)
Authors: Andrey Galkin


1. Concept

There is nothing new in this specification, but a formalization for referencing of a well known API pattern in JavaScript world.

Any object may have on(), off(), once() and emit() methods to register event handler, unregister event handler, register event handler to catch only once and emit events.

Event handler must get executed with no emit() call in function stack.

2. API