codecombat/app/views/kinds/UserView.coffee
2014-07-06 20:45:27 +02:00

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