Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

Message Hub for custom events


Support for the custom event feature by creating a message hub / message bus.

article on using jQuery.mhub for custom event
a primitive demo on using jQuery.mhub

// factory, create the mhub object
var mhub = jQuery.mhub.create();

// register a name in the message hub, return false if duplicate
mhub.add(String NAME);

// un-register a name from the message hub, return false if not exists
mhub.remove(String  NAME);

// listen to a hub, return false if hub does not exists
mhub.listen(String NAME, Function CALLBACK_FN, Object SCOPE_FIX <optional>);

// send a message to all the handling function listening to his hub
mhub.send(String NAME, Object MESSAGE  <optional>);

Downloads



0
Your rating: None