View = require 'views/kinds/CocoView' template = require 'templates/play/level/gold' module.exports = class GoldView extends View id: "gold-view" template: template subscriptions: 'surface:gold-changed': 'onGoldChanged' 'level-set-letterbox': 'onSetLetterbox' onGoldChanged: (e) -> @$el.show() goldEl = @$el.find('.gold-amount.team-' + e.team) unless goldEl.length teamEl = $("