From: Rick Waldron Date: Thu, 17 Nov 2011 20:02:38 +0000 (-0500) Subject: Landing pull request 604. Updates bind to on in src/ajax.js. Fixes #10817. X-Git-Tag: 1.7.1rc1~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=327bc07c54526979527f9622c99efdcc8c715f7a;p=jquery.git 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 --- diff --git a/src/ajax.js b/src/ajax.js index fb5f08c1d..bb64b6863 100644 --- a/src/ajax.js +++ b/src/ajax.js @@ -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 ); }; });