BrEventQueue event queue

Events module is a great thing if you want to develop pure event driven application. Usage is simple. Like in well known jQuery you can subscribe to some event. There is one global events object accessible via You can create own events object by var events = br.eventQueue();

<script>'someEvent', function(someData) {
  alert('someEvent triggered');

$('body').click(function() {'someEvent', someData);

Object members

Method/property Description
If you are using global config, please prepend below methods with
on(name, callback)Register event callback
trigger(name, event
stick(name, sticky event