var events = element.$events, ret; 
var events = element.$events, ret, index; 
	remove: function(element, type, handler) {		var events = element.$events, ret;		if ( events ) {			// type is actually an event object here			if ( type && type.type ) {				handler = type.handler;				type = type.type;			}						if ( !type ) {				for ( type in events )					this.remove( element, type );			} else if ( events[type] ) {				// remove the given handler for the given type				if ( handler )					delete events[type][handler.guid];								// remove all handlers for the given type				else					for ( handler in element.$events[type] )						delete events[type][handler];				// remove generic event handler if no more handlers exist				for ( ret in events[type] ) break;				if ( !ret ) {					if (element.removeEventListener)						element.removeEventListener(type, element.$handle, false);					else if (element.detachEvent)						element.detachEvent("on" + type, element.$handle);					ret = null;					delete events[type];				}			}			// Remove the expando if it's no longer used			for ( ret in events ) break;			if ( !ret )				element.$handle = element.$events = null;		}	},
6056	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6056/2c33101693b172ccc3e87725eb5a7772de6745be/event.js/buggy/src/event/event.js