Author: Anonymous Language: javascript
Description: No description Timestamp: 2010-01-09 00:41:46 -0500
View raw paste Reply
  1. jQuery.each( ("blur,focus,load,resize,scroll,unload,click,dblclick," +
  2.         "mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave," +
  3.         "change,select,submit,keydown,keypress,keyup,error").split(","), function(i, name){
  4.  
  5.         // Handle event binding
  6.         jQuery.fn[name] = function(fn){
  7.                 return fn ? this.bind(name, fn) : this.trigger(name);
  8.         };
  9. });
View raw paste Reply