I've never seen anyone do this before. Could anyone enlighten me on this? This was taken from here.
jQuery(function ($) { //What's with the $ as an argument? $('#flux').bind('scroll', function () { if ($(this).scrollTop() + $(this).innerHeight() >= $(this)[0].scrollHeight) { alert('end reached'); } }) }); It appears he can declare a function and run it at the same time.