| 47 | module.exports = (LadderTabView = (function () { |
| 48 | LadderTabView = class LadderTabView extends CocoView { |
| 49 | static initClass () { |
| 50 | this.prototype.id = 'ladder-tab-view' |
| 51 | this.prototype.template = require('app/templates/play/ladder/ladder-tab-view') |
| 52 | this.prototype.scoreForDisplay = scoreForDisplay |
| 53 | |
| 54 | this.prototype.events = { |
| 55 | 'click .connect-facebook': 'onConnectFacebook', |
| 56 | 'click .connect-google-plus': 'onConnectGPlus', |
| 57 | 'click .name-col-cell': 'onClickPlayerName', |
| 58 | 'click .spectate-cell': 'onClickSpectateCell', |
| 59 | 'click .load-more-ladder-entries': 'onLoadMoreLadderEntries', |
| 60 | 'click [data-toggle="coco-modal"][data-target="core/CreateAccountModal"]': 'openCreateAccountModal' |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | // Refactored, to-reimplement |
| 65 | // subscriptions: |