Skip to content

Instantly share code, notes, and snippets.

@mulderp
Created July 2, 2012 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mulderp/3032032 to your computer and use it in GitHub Desktop.
Save mulderp/3032032 to your computer and use it in GitHub Desktop.
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