Landing pull request 604. Updates bind to on in src/ajax.js. Fixes #10817.

More Details:
 - https://github.com/jquery/jquery/pull/604
 - http://bugs.jquery.com/ticket/10817
This commit is contained in:
Rick Waldron 2011-11-17 15:02:38 -05:00 committed by timmywil
parent 3d6237ef8a
commit 327bc07c54

View File

@ -261,7 +261,7 @@ jQuery.fn.extend({
// Attach a bunch of functions for handling common AJAX events
jQuery.each( "ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split( " " ), function( i, o ){
jQuery.fn[ o ] = function( f ){
return this.bind( o, f );
return this.on( o, f );
};
});