The EventService is a lightweight implementation of the "Observer" pattern.
It allows for filtering when triggering / publishing or removing / unsubscribing.
Events can be triggered or removed based on name, priority, channels.
Implemented without any dependency.
- Channels
- Priority
- Event selection / filtering
- Individual event control
- pause / resume
- increment / decrement priority
- stop
EventService API and examples
Event API and examples
Run the tests with watch mode (will start Chrome and Firefox):
./script/start-test-watch.sh
This will compile the tests on the fly and execute on the browsers. The debug mode on the page allows for debugging through browser developer tools.
Test report available on test/index.html
.
You need to compile the tests before run.
gulp browserify-test
gulp
- PhantomJS
- Chrome 39
- Firefox 31
- added property "data" in class Event
- added example bubblemixer
- moved built source to lib
Add coverage report