From 6a018515af4869d364c3fcc9e52a8ca8531c1112 Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Thu, 8 Feb 2018 16:45:19 -0800 Subject: [PATCH] Make WorkspaceSvg.refreshToolboxSelection_ package instead of private --- core/workspace_svg.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/workspace_svg.js b/core/workspace_svg.js index 53b600ae8..9a05cc77d 100644 --- a/core/workspace_svg.js +++ b/core/workspace_svg.js @@ -929,9 +929,9 @@ Blockly.WorkspaceSvg.prototype.paste = function(xmlBlock) { /** * Refresh the toolbox unless there's a drag in progress. - * @private + * @package */ -Blockly.WorkspaceSvg.prototype.refreshToolboxSelection_ = function() { +Blockly.WorkspaceSvg.prototype.refreshToolboxSelection = function() { var ws = this.isFlyout ? this.targetWorkspace : this; if (ws && !ws.currentGesture_ && ws.toolbox_ && ws.toolbox_.flyout_) { ws.toolbox_.refreshSelection(); @@ -947,7 +947,7 @@ Blockly.WorkspaceSvg.prototype.refreshToolboxSelection_ = function() { */ Blockly.WorkspaceSvg.prototype.renameVariableById = function(id, newName) { Blockly.WorkspaceSvg.superClass_.renameVariableById.call(this, id, newName); - this.refreshToolboxSelection_(); + this.refreshToolboxSelection(); }; /** @@ -958,7 +958,7 @@ Blockly.WorkspaceSvg.prototype.renameVariableById = function(id, newName) { */ Blockly.WorkspaceSvg.prototype.deleteVariableById = function(id) { Blockly.WorkspaceSvg.superClass_.deleteVariableById.call(this, id); - this.refreshToolboxSelection_(); + this.refreshToolboxSelection(); }; /** @@ -976,7 +976,7 @@ Blockly.WorkspaceSvg.prototype.deleteVariableById = function(id) { Blockly.WorkspaceSvg.prototype.createVariable = function(name, opt_type, opt_id) { var newVar = Blockly.WorkspaceSvg.superClass_.createVariable.call( this, name, opt_type, opt_id); - this.refreshToolboxSelection_(); + this.refreshToolboxSelection(); return newVar; };