if ( jQuery.browser.msie && element.setInterval != undefined )
element = window;
+ // Make sure that the function being executed has a unique ID
+ if ( !handler.guid )
+ handler.guid = this.guid++;
+
// if data is passed, bind to handler
if( data != undefined ) {
// Create temporary function pointer to original handler
handler.guid = fn.guid;
}
- // Make sure that the function being executed has a unique ID
- if ( !handler.guid ) {
- handler.guid = this.guid++;
- // Don't forget to set guid for the original handler function
- if (fn) fn.guid = handler.guid;
- }
-
// Init the element's event structure
if (!element.$events)
element.$events = {};