Permalink
Browse files
Merge branch 'master' of git@github.com:jquery/jquery
- Loading branch information
Showing
with
3 additions
and
4 deletions.
-
+3
−4
src/event.js
|
@@ -583,26 +583,25 @@ jQuery.each({ |
|
|
blur: "focusout" |
|
|
}, function( orig, fix ){ |
|
|
var event = jQuery.event, |
|
|
special = event.special, |
|
|
handle = event.handle; |
|
|
|
|
|
function ieHandler() { |
|
|
arguments[0].type = orig; |
|
|
return handle.apply(this, arguments); |
|
|
} |
|
|
|
|
|
special[orig] = { |
|
|
event.special[orig] = { |
|
|
setup:function() { |
|
|
if ( this.addEventListener ) |
|
|
this.addEventListener( orig, handle, true ); |
|
|
else |
|
|
jQuery.event.add( this, fix, ieHandler ); |
|
|
event.add( this, fix, ieHandler ); |
|
|
}, |
|
|
teardown:function() { |
|
|
if ( this.removeEventListener ) |
|
|
this.removeEventListener( orig, handle, true ); |
|
|
else |
|
|
jQuery.event.remove( this, fix, ieHandler ); |
|
|
event.remove( this, fix, ieHandler ); |
|
|
} |
|
|
}; |
|
|
}); |
|
|
0 comments on commit
4fd730d