Created
April 6, 2011 16:26
-
-
Save droot/905974 to your computer and use it in GitHub Desktop.
Color Box Controller Implementation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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