Fixed item shop not loading items with later letters of the alphabet, since there are now so many items.

This commit is contained in:
Nick Winter 2015-02-24 12:14:56 -08:00
parent 1c691283c4
commit 9dd07b024e

View file

@ -102,6 +102,10 @@ module.exports = class PlayItemsModal extends ModalView
model.comingSoon = not model.getFrontFacingStats().props.length and not _.size(model.getFrontFacingStats().stats) and not model.owned # Temp: while there are placeholder items
@idToItem[model.id] = model
if itemFetcher.skip isnt 0
# Make sure we render the newly fetched items, except the first time (when it happens automatically).
@render()
if needMore
itemFetcher.skip += PAGE_SIZE
itemFetcher.fetch({data: {skip: itemFetcher.skip, limit: PAGE_SIZE}})