Merge branch 'master' of git@github.com:jquery/jquery
This commit is contained in:
commit
4fd730dca7
1 changed files with 3 additions and 4 deletions
|
@ -583,7 +583,6 @@ jQuery.each({
|
|||
blur: "focusout"
|
||||
}, function( orig, fix ){
|
||||
var event = jQuery.event,
|
||||
special = event.special,
|
||||
handle = event.handle;
|
||||
|
||||
function ieHandler() {
|
||||
|
@ -591,18 +590,18 @@ jQuery.each({
|
|||
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 );
|
||||
}
|
||||
};
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue