No need to check non-null before nullifying

This commit is contained in:
Neil Fraser
2019-03-28 15:14:44 -07:00
committed by Neil Fraser
parent 6fb95f9038
commit 45e24c2b98

View File

@@ -594,12 +594,9 @@ Blockly.WorkspaceSvg.prototype.dispose = function() {
this.grid_ = null;
}
if (this.toolboxCategoryCallbacks_) {
this.toolboxCategoryCallbacks_ = null;
}
if (this.flyoutButtonCallbacks_) {
this.flyoutButtonCallbacks_ = null;
}
this.toolboxCategoryCallbacks_ = null;
this.flyoutButtonCallbacks_ = null;
if (!this.options.parentWorkspace) {
// Top-most workspace. Dispose of the div that the
// SVG is injected into (i.e. injectionDiv).