mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-13 13:17:50 +08:00
Changed parent/child api widgets
This commit is contained in:
parent
f241242b7f
commit
0af18e8c13
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
},
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user