mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 16:17:57 -05:00
278d6752c3
Removed the dynamic population of the Level, instead putting straightforward logic into LevelLoader. Simplified SuperModel.
21 lines
No EOL
417 B
CoffeeScript
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() |