yeah

1.1.6 • Public • Published

Yeah

Yet another event handler (AKA Sub/Pub). What seperates Yeah from other Sub/Pub helpers is it provides two key features to help deal with event heavy applications; Compound events and Latched events.

window.yeh = window.yeh || [];
 
yeh.push(['compound', 'app.ready', ['dom.ready','yeh.ready']]);
 
window.yeh = yeah('yeh', {
  initialize: function() {
    console.log('Start the application!');
  }
});
 
$(document).domready(yeh.callMeMaybe('dom.ready'));
yeh.on('app.ready', yeh.initialize);

Readme

Keywords

Package Sidebar

Install

npm i yeah

Weekly Downloads

2

Version

1.1.6

License

MIT

Last publish

Collaborators

  • jiggliemon