Skip to content

Instantly share code, notes, and snippets.

@droot
Created April 6, 2011 16:26
Show Gist options
  • Save droot/905974 to your computer and use it in GitHub Desktop.
Save droot/905974 to your computer and use it in GitHub Desktop.
Color Box Controller Implementation
class ColorBoxController extends Backbone.Controller
initialize: ->
model = new ConfigModel
color_input = new ConfigInputView 'el': $('#config-input'), 'model': model
for x in [1..5]
view = new ColorBoxView {model: model}
$('#color-boxes').append view.render().el
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment