Skip to content

Commit bcc3593

Browse files
authored
Ajax Events: Promote on() instead of bind() (#1202)
Closes gh-1202
1 parent 3532693 commit bcc3593

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/Ajax_Events.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ <h3>Local Events</h3>
1919
</code></pre>
2020
<h3>Global Events</h3>
2121
<p>These events are triggered on the <code>document</code>, calling any handlers which may be listening. You can listen for these events like so:</p>
22-
<pre> $(document).bind("ajaxSend", function(){
22+
<pre> $(document).on("ajaxSend", function(){
2323
$("#loading").show();
24-
}).bind("ajaxComplete", function(){
24+
}).on("ajaxComplete", function(){
2525
$("#loading").hide();
2626
});
2727
</pre>

0 commit comments

Comments
 (0)