Commit 2d27e053 authored by lrbabe's avatar lrbabe Committed by John Resig

Fix inverted 'orig' and 'fix' event in mouseenter/mouseleave special events.

parent 3afc6533
...@@ -538,15 +538,15 @@ delegate = function( event ) { ...@@ -538,15 +538,15 @@ delegate = function( event ) {
// Create mouseenter and mouseleave events // Create mouseenter and mouseleave events
jQuery.each({ jQuery.each({
mouseover: "mouseenter", mouseenter: "mouseover",
mouseout: "mouseleave" mouseleave: "mouseout"
}, function( orig, fix ) { }, function( orig, fix ) {
jQuery.event.special[ fix ] = { jQuery.event.special[ orig ] = {
setup: function(data){ setup: function(data){
jQuery.event.add( this, orig, data && data.selector ? delegate : withinElement, fix ); jQuery.event.add( this, fix, data && data.selector ? delegate : withinElement, orig );
}, },
teardown: function(data){ teardown: function(data){
jQuery.event.remove( this, orig, data && data.selector ? delegate : withinElement ); jQuery.event.remove( this, fix, data && data.selector ? delegate : withinElement );
} }
}; };
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment