if (!handlers) handlers = element.$events[type] = {};   handlers[handler.guid] = handler;  if (!element.$handle) { element.$handle = function() { jQuery.event.handle.apply(element, arguments); };  
if (!handlers) { handlers = element.$events[type] = {};  
	add: function(element, type, handler, data) {		// For whatever reason, IE has trouble passing the window object		// around, causing it to be cloned in the process		if ( jQuery.browser.msie && element.setInterval != undefined )			element = window;				// if data is passed, bind to handler 		if( data != undefined ) {         	// Create temporary function pointer to original handler 			var fn = handler; 			// Create unique handler function, wrapped around original handler 			handler = function() { 				// Pass arguments and context to original handler 				return fn.apply(this, arguments); 			};			// Store data in unique handler 			handler.data = data;			// Set the guid of unique handler to the same of original handler, so it can be removed 			handler.guid = fn.guid;		}		// Make sure that the function being executed has a unique ID		if ( !handler.guid )			handler.guid = this.guid++;		// Init the element's event structure		if (!element.$events)			element.$events = {};		// Get the current list of functions bound to this event		var handlers = element.$events[type];		// Init the event handler queue		if (!handlers)			handlers = element.$events[type] = {};		// Add the function to the element's handler list		handlers[handler.guid] = handler;				if (!element.$handle) {			element.$handle = function() {				jQuery.event.handle.apply(element, arguments);			};			// And bind the global event handler to the element			if (element.addEventListener)				element.addEventListener(type, element.$handle, false);			else if (element.attachEvent)				element.attachEvent("on" + type, element.$handle, false);		}		// Remember the function in a global list (for triggering)		if (!this.global[type])			this.global[type] = [];		this.global[type].push( element );	},
6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6056/1d2faf36cf356bc09d3389ad6fce6ee520560f25/event.js/clean/src/event/event.js