ajaxComplete not working on $(window) <p>I'm using jQuery version 1.5.1 and this isn't working for me: </p> <pre><code> $(window).ajaxComplete(function() { console.log('hello'); }); </code></pre> <p>but this is: </p> <pre><code> $(document).ajaxComplete(function() { console.log('hello'); }); </code></pre> <p>Why can't I attach the event handler to <code>$(window)</code>? </p> <p><em><strong>Note: this code is working with jQuery v1.3.2 but not with v1.5.1</em></strong></p>