@@ -183,6 +183,7 @@ module.exports = baseVw.extend({
183183 //set view's userID from the userModel;
184184 this . userID = options . userModel . get ( 'guid' ) ;
185185 this . userProfileFetchParameters = { } ;
186+ this . followerFetchStart = 0 ;
186187 this . itemFetchParameters = { } ;
187188 this . model = new Backbone . Model ( ) ;
188189 this . globalUserProfile = options . userProfile ;
@@ -280,7 +281,6 @@ module.exports = baseVw.extend({
280281 } else {
281282 this . options . ownPage = false ;
282283 this . userProfileFetchParameters = $ . param ( { 'guid' : this . pageID } ) ;
283- //this.userProfileFetchParameters = $.param({'guid': this.pageID, 'start': 0});
284284 }
285285
286286 this . userProfileFetch = this . userProfile . fetch ( {
@@ -687,20 +687,29 @@ module.exports = baseVw.extend({
687687 } ,
688688
689689 fetchFollowers : function ( ) {
690- var self = this ;
690+ var self = this ,
691+ fetchFollowersParameters ;
692+
693+ if ( this . ownPage ) {
694+ fetchFollowersParameters = $ . param ( { 'start' : this . followerFetchStart } ) ;
695+ } else {
696+ fetchFollowersParameters = $ . param ( { 'guid' : this . pageID , 'start' : this . followerFetchStart } ) ;
697+ }
691698
692699 this . followers . fetch ( {
693700 data : self . userProfileFetchParameters ,
694701 //timeout: 5000,
695- success : function ( model ) {
702+ success : ( model ) => {
696703 var followerArray = model . get ( 'followers' ) ;
704+ this . $ ( '.js-userFollowerCount' ) . html ( model . get ( 'count' ) ) ;
705+ this . followerFetchStart += model . length ;
697706
698707 if ( self . isRemoved ( ) ) return ;
699708
700- self . renderFollowers ( followerArray ) ;
709+ this . renderFollowers ( followerArray ) ;
701710 //if this is not their page, see if they are being followed
702- if ( self . options . ownPage === false ) {
703- self . toggleFollowButtons ( Boolean ( __ . findWhere ( followerArray , { guid : self . userID } ) ) ) ;
711+ if ( this . options . ownPage === false ) {
712+ this . toggleFollowButtons ( Boolean ( __ . findWhere ( followerArray , { guid : this . userID } ) ) ) ;
704713 }
705714 } ,
706715 error : function ( model , response ) {
@@ -796,12 +805,11 @@ module.exports = baseVw.extend({
796805 ownFollowing : this . ownFollowing ,
797806 hideFollow : true ,
798807 serverUrl : this . options . userModel . get ( 'serverUrl' ) ,
799- reverse : true
808+ reverse : true ,
809+ perFetch : 30
800810 } ) ;
801811 this . registerChild ( this . followerList ) ;
802812
803- this . $ ( '.js-userFollowerCount' ) . html ( model . length ) ;
804-
805813 if ( model . length ) {
806814 this . followersSearch = new window . List ( 'searchFollowers' , {
807815 valueNames : [ 'js-searchName' , 'js-searchHandle' ] ,
0 commit comments