Commit 327bc07c authored by Rick Waldron's avatar Rick Waldron Committed by timmywil

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