Merge branch 'master' of git@github.com:jquery/jquery

This commit is contained in:
John Resig 2009-11-09 13:01:10 +01:00
commit 4fd730dca7

View file

@ -583,7 +583,6 @@ jQuery.each({
blur: "focusout" blur: "focusout"
}, function( orig, fix ){ }, function( orig, fix ){
var event = jQuery.event, var event = jQuery.event,
special = event.special,
handle = event.handle; handle = event.handle;
function ieHandler() { function ieHandler() {
@ -591,18 +590,18 @@ jQuery.each({
return handle.apply(this, arguments); return handle.apply(this, arguments);
} }
special[orig] = { event.special[orig] = {
setup:function() { setup:function() {
if ( this.addEventListener ) if ( this.addEventListener )
this.addEventListener( orig, handle, true ); this.addEventListener( orig, handle, true );
else else
jQuery.event.add( this, fix, ieHandler ); event.add( this, fix, ieHandler );
}, },
teardown:function() { teardown:function() {
if ( this.removeEventListener ) if ( this.removeEventListener )
this.removeEventListener( orig, handle, true ); this.removeEventListener( orig, handle, true );
else else
jQuery.event.remove( this, fix, ieHandler ); event.remove( this, fix, ieHandler );
} }
}; };
}); });