codecombat/app/views/supermodel.demo.coffee
Scott Erickson 278d6752c3 Refactored SuperModel, CocoModel and LevelLoader.
Removed the dynamic population of the Level, instead putting straightforward logic into LevelLoader.
Simplified SuperModel.
2014-04-25 14:30:06 -07:00

21 lines
No EOL
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()