Changed parent/child api widgets

This commit is contained in:
Jonathan Frederic 2013-10-24 23:53:40 +00:00
parent f241242b7f
commit 0af18e8c13
2 changed files with 3 additions and 3 deletions

View File

@ -211,7 +211,7 @@ define(["../../components/underscore/underscore-min.js",
var parent_model = parent_comm.model;
var parent_view = parent_model.views[cell_index];
if (parent_view.display_child != undefined) {
parent_view.display_child(view.$el);
parent_view.display_child(view);
displayed = true;
}
}

View File

@ -25,8 +25,8 @@ require(["../static/notebook/js/widget"], function(){
return IPython.WidgetView.prototype.update.call(this);
},
display_child : function($element) {
this.$el.append($element);
display_child : function(view) {
this.$el.append(view.$el);
},
});