mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 16:17:57 -05:00
21 lines
417 B
CoffeeScript
21 lines
417 B
CoffeeScript
|
CocoView = require 'views/kinds/CocoView'
|
||
|
template = require 'templates/supermodel.demo'
|
||
|
User = require 'models/User'
|
||
|
|
||
|
module.exports = class UnnamedView extends CocoView
|
||
|
id: "supermodel-demo-view"
|
||
|
template: template
|
||
|
|
||
|
constructor: (options) ->
|
||
|
super(options)
|
||
|
@load()
|
||
|
|
||
|
load: ->
|
||
|
@supermodel.addModelResource(new User(me.id))
|
||
|
|
||
|
# getRenderData: ->
|
||
|
# c = super()
|
||
|
# c
|
||
|
|
||
|
# destroy: ->
|
||
|
# super()
|