Skip to content

Instantly share code, notes, and snippets.

@itokami1123dev
Created July 24, 2013 11:16
Show Gist options
  • Save itokami1123dev/6069722 to your computer and use it in GitHub Desktop.
Save itokami1123dev/6069722 to your computer and use it in GitHub Desktop.
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