set the flag before firing needLoadMoreData.

 This allows passing in a synchronous function in loadMoreData()