Fixed a patches resource name.

This commit is contained in:
Scott Erickson 2014-04-28 11:10:27 -07:00
parent 01f2a556f9
commit 8164c6881c
2 changed files with 2 additions and 1 deletions

View file

@ -692,3 +692,4 @@
level_session: "Your Session"
opponent_session: "Opponent Session"
article: "Article"
user_names: "User Names"

View file

@ -30,7 +30,7 @@ module.exports = class PatchesView extends CocoView
onPatchesLoaded: ->
ids = (p.get('creator') for p in @patches.models)
jqxhrOptions = nameLoader.loadNames ids
@supermodel.addRequestResource('name_loader', jqxhrOptions).load() if jqxhrOptions
@supermodel.addRequestResource('user_names', jqxhrOptions).load() if jqxhrOptions
getRenderData: ->
c = super()