Created
June 30, 2013 21:34
-
-
Save jhbruhn/5897025 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
el:"", //Feed-Item-List | |
events: { 'scroll': 'checkScroll' }, | |
checkScroll: function () { | |
var triggerPoint = 100; // 100px from the bottom | |
if( !this.isLoading && this.el.scrollTop + this.el.clientHeight + triggerPoint > this.el.scrollHeight ) { | |
this.addPage(); //oderso | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment