Skip to content

Commit

Permalink
#5273 fix combinePlotScope error when deleting containing cell
Browse files Browse the repository at this point in the history
  • Loading branch information
Mariusz Jurowicz committed Jan 16, 2018
1 parent 002c6dd commit ae303f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/notebook/src/Plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,9 @@ var PlotView = widgets.DOMWidgetView.extend({
that._currentScope.scopes.forEach(function(scope) {
scope.destroy();
});
} else if (that._currentScope) {
that._currentScope.destroy();
}
that._currentScope.destroy();

setTimeout(function() { that._currentScope = null; });
});
Expand Down

0 comments on commit ae303f7

Please sign in to comment.