From d658f362acb82ec9f5246407a9f2f1ea97e64de8 Mon Sep 17 00:00:00 2001 From: Jason Grout Date: Wed, 8 Jan 2014 12:50:45 -0500 Subject: [PATCH] Update option-passing for creating child views. --- IPython/html/static/notebook/js/widgets/widget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IPython/html/static/notebook/js/widgets/widget.js b/IPython/html/static/notebook/js/widgets/widget.js index c7e15acc3..cc9a7464e 100644 --- a/IPython/html/static/notebook/js/widgets/widget.js +++ b/IPython/html/static/notebook/js/widgets/widget.js @@ -192,11 +192,11 @@ function(widget_manager, underscore, backbone){ // triggered on model change }, - child_view: function(model_id, view_name, options) { + child_view: function(model_id, options) { // create and return a child view, given a model id for a model and (optionally) a view name // if the view name is not given, it defaults to the model's default view attribute var child_model = this.widget_manager.get_model(model_id); - var child_view = this.widget_manager.create_view(child_model, view_name, options); + var child_view = this.widget_manager.create_view(child_model, options); this.child_views[model_id] = child_view; return child_view; },