mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-01 03:16:56 -05:00
18 lines
No EOL
548 B
CoffeeScript
18 lines
No EOL
548 B
CoffeeScript
RootView = require 'views/core/RootView'
|
|
template = require 'templates/account/payments-view'
|
|
CocoCollection = require 'collections/CocoCollection'
|
|
Payment = require 'models/Payment'
|
|
|
|
module.exports = class PaymentsView extends RootView
|
|
id: "payments-view"
|
|
template: template
|
|
|
|
constructor: (options) ->
|
|
super(options)
|
|
@payments = new CocoCollection([], { url: '/db/payment', model: Payment, comparator:'_id' })
|
|
@supermodel.loadCollection(@payments, 'payments')
|
|
|
|
getRenderData: ->
|
|
c = super()
|
|
c.payments = @payments
|
|
c |