Skip to content

Commit

Permalink
The renderer needs the view, so just return the whole view.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout committed Apr 12, 2017
1 parent 7465afe commit 23616cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions widgetsnbextension/src/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,10 @@ WidgetManager.prototype._createMenuItem = function(title, action) {
return item;
};



WidgetManager.prototype.display_view = function(msg, view, options) {
// TODO: handle case when pWidget isn't defined:
// let widget = (view as any).pWidget ? (view as any).pWidget : new BackboneViewWrapper(view);
return Promise.resolve(view.pWidget);
return Promise.resolve(view);
}


Expand Down

0 comments on commit 23616cd

Please sign in to comment.