Skip to content

Commit

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

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

0 comments on commit bd7619d

Please sign in to comment.