]> source.dussan.org Git - jquery.git/commitdiff
Landing pull request 604. Updates bind to on in src/ajax.js. Fixes #10817.
authorRick Waldron <waldron.rick@gmail.com>
Thu, 17 Nov 2011 20:02:38 +0000 (15:02 -0500)
committertimmywil <timmywillisn@gmail.com>
Thu, 17 Nov 2011 20:02:38 +0000 (15:02 -0500)
More Details:
 - https://github.com/jquery/jquery/pull/604
 - http://bugs.jquery.com/ticket/10817

src/ajax.js

index fb5f08c1d12123d8e6acad9e20135255ca52bdf7..bb64b6863a8788f611d011e18bab3849c26e8137 100644 (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 );
        };
 });