Ticket #935: jquery_bug935.patch
File jquery_bug935.patch, 1.1 KB (added by , 15 years ago) |
---|
-
event.js
13 13 if ( jQuery.browser.msie && element.setInterval != undefined ) 14 14 element = window; 15 15 16 // if data is passed, bind to handler17 if( data )18 handler.data = data;19 20 16 // Make sure that the function being executed has a unique ID 21 17 if ( !handler.guid ) 22 18 handler.guid = this.guid++; 23 19 20 // if data is passed, bind to handler 21 if( data != undefined ) { 22 // Create temporary function pointer to original handler 23 var fn = handler; 24 25 // Create unique handler function, wrapped around original handler 26 handler = function() { 27 // Pass arguments and context to original handler 28 return fn.apply(this, arguments); 29 }; 30 31 // Store data in unique handler 32 handler.data = data; 33 34 // Set the guid of unique handler to the same of original handler, so it can be removed 35 handler.guid = fn.guid; 36 } 37 24 38 // Init the element's event structure 25 39 if (!element.$events) 26 40 element.$events = {};