[ create a new paste ] login | about

Link: http://codepad.org/nnjxVV8H    [ raw code | fork ]

mike.helgeson - Plain Text, pasted on Jul 2:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
jQuery.each({ mouseover: 'mouseenter', mouseout: 'mouseleave' }, function( orig, fix ){
	var ev = jQuery.event.special[ fix ] = {
		setup: function(){
			return jQuery.browser.msie ? false : jQuery( this ).bind( orig, ev.handler );
			},
		teardown: function(){
			return jQuery.browser.msie ? false : jQuery( this ).unbind( orig, ev.handler );
			},
		handler: function( event ){
			event.type = fix; 
			return withinElement( event, this ) || jQuery.event.handle.apply( this, arguments );
			}
		};			   
	});


Create a new paste based on this one


Comments: