How to namespace your event handlers


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $("div").bind("click.plugin", someFn);
  2. $("div").bind("focus.plugin", otherFn);
  3. $("div").unbind(".plugin");
  4.  

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.