mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 10:06:08 -05:00
19 lines
495 B
CoffeeScript
19 lines
495 B
CoffeeScript
RootView = require 'views/kinds/RootView'
|
|
template = require 'templates/kinds/user'
|
|
User = require 'models/User'
|
|
|
|
module.exports = class UserView extends RootView
|
|
template: template
|
|
className: 'user-view'
|
|
|
|
constructor: (options, nameOrID) ->
|
|
# TODO Ruben Assume ID for now
|
|
user = new User nameOrID
|
|
user.fetch
|
|
success: ->
|
|
console.log 'helabaaa'
|
|
error: (model, response, options) ->
|
|
console.log response
|
|
console.log options
|
|
|
|
super options
|