##// END OF EJS Templates
Update option-passing for creating child views.
Jason Grout -
Show More
@@ -192,11 +192,11 function(widget_manager, underscore, backbone){
192 // triggered on model change
192 // triggered on model change
193 },
193 },
194
194
195 child_view: function(model_id, view_name, options) {
195 child_view: function(model_id, options) {
196 // create and return a child view, given a model id for a model and (optionally) a view name
196 // create and return a child view, given a model id for a model and (optionally) a view name
197 // if the view name is not given, it defaults to the model's default view attribute
197 // if the view name is not given, it defaults to the model's default view attribute
198 var child_model = this.widget_manager.get_model(model_id);
198 var child_model = this.widget_manager.get_model(model_id);
199 var child_view = this.widget_manager.create_view(child_model, view_name, options);
199 var child_view = this.widget_manager.create_view(child_model, options);
200 this.child_views[model_id] = child_view;
200 this.child_views[model_id] = child_view;
201 return child_view;
201 return child_view;
202 },
202 },
General Comments 0
You need to be logged in to leave comments. Login now