Posted By

omerta83 on 07/08/10


Tagged

javascript jquery


Versions (?)

Using custom events for binding the same functionality for multiple pieces of code


 / Published in: JavaScript
 

  1. $("div").bind("remove.pluginA", someFn);
  2. $("div").bind("remove.pluginB", otherFn);
  3. $("div").trigger("remove");
  4.  

Report this snippet  

You need to login to post a comment.