Created
April 6, 2011 05:12
-
-
Save scottharvey/905176 to your computer and use it in GitHub Desktop.
This file contains 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
MilestoneSet = Backbone.Collection.extend({ | |
model: MilestoneModel, | |
initialize: function() { | |
this.bind('add', function(model) { | |
new ProjectView({ model: model }); | |
}); | |
} | |
}); | |
Milestones = new MilestoneSet(); | |
Milestones.add({id: 1, name: 'Initial research', model: window.project, time: '60h'}, {silent: true}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment