BattleSim/client/app/js/concerns/achievements.coffee

5 lines
255 B
CoffeeScript
Raw Normal View History

2016-02-01 22:19:30 +00:00
$currentModal = null
PokeBattle.primus.on 'achievementsEarned', (achievements) ->
# TODO: Add achievements to the current modal if one is already open
$currentModal = PokeBattle.modal('modals/achievements', window: window, achievements: achievements)