Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function searchNewRecords() {
- // Will not work in Firefox:
- // if (scrolledNearBottom(document.querySelector('body'), this.offset)) {
- // Will work in Firefox and Chrome:
- if (scrolledNearBottom(document.querySelector('body,html'), this.offset)) {
- addSearchedRecords.call(this);
- }
- }
- function browseNewRecords() {
- // Will not work in Firefox:
- // if (scrolledNearBottom(document.querySelector('body'), this.offset)) {
- // Will work in Firefox and Chrome:
- if (scrolledNearBottom(document.querySelector('body,html'), this.offset)) {
- addBrowsedRecords.call(this);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement