theonion/fartscroll.js — pull request #40 by nettsundere (2013-05-11 03:56:34+00:00)
Title: fartscroll.js should not rewrite any existing onscroll event handler.

You can test new behavior using this code:
```JavaScript
$(document).ready(function() {

window.onscroll = function() { console.log('my handler') };

// Ensure the page always has more scrolling
$(document).scroll(function() {
while ((window.pageYOffset + window.innerHeight) >= $(this).height() - (window.innerHeight / 2)) {
$('ul').append('
Testing.
');
}
}).scroll();

fartscroll(800);
});
```

With this patch included "my handler" will not be rewritten.