diff --git a/IPython/html/static/notebook/js/widget.js b/IPython/html/static/notebook/js/widget.js
index 9355037..5bfdc8d 100644
--- a/IPython/html/static/notebook/js/widget.js
+++ b/IPython/html/static/notebook/js/widget.js
@@ -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;
}
}
diff --git a/IPython/html/static/notebook/js/widgets/container.js b/IPython/html/static/notebook/js/widgets/container.js
index b0ba7c3..b763849 100644
--- a/IPython/html/static/notebook/js/widgets/container.js
+++ b/IPython/html/static/notebook/js/widgets/container.js
@@ -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);
},
});