Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
console stubs for backbone
object = { a: '1', b: '2' }
object.sub_scope = { x: '1', y: '2' }
Todomvc =
init: ->
view = new Todomvc.AppView()
view.initialize(object)
class Todomvc.AppView
initialize: (object) ->
@el = object
console.log(@el)
Todomvc.init()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.