mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
No need to check non-null before nullifying
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user