Created
July 24, 2013 11:16
-
-
Save itokami1123dev/6069722 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
var ApplicationView = Backbone.View.extend({ | |
el: '#application', | |
collection: null, // :MenuList | |
initialize: function(options){ | |
this.collection = new MenuList(); | |
var op = { collection:this.collection}; | |
var menuListView = new MenuListView(op); | |
var selectedListView = new SelectedListView(op); | |
var sumPriceView = new SumPriceView(op); | |
}, | |
start: function(){ | |
this.collection.fetch({reset: true}); | |
} | |
}); | |
$(function(){ | |
(new ApplicationView()).start(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment