From 831a14e1e4c945ef49c5da6d558aa458ac2ac1e1 Mon Sep 17 00:00:00 2001 From: Emma Dauterman Date: Tue, 2 Aug 2016 17:18:12 -0700 Subject: [PATCH] Made Blockly.WorkspaceSvg.cleanUp public --- core/workspace_svg.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/workspace_svg.js b/core/workspace_svg.js index 700ee43ab..8e06fb415 100644 --- a/core/workspace_svg.js +++ b/core/workspace_svg.js @@ -782,9 +782,8 @@ Blockly.WorkspaceSvg.prototype.getBlocksBoundingBox = function() { /** * Clean up the workspace by ordering all the blocks in a column. - * @private */ -Blockly.WorkspaceSvg.prototype.cleanUp_ = function() { +Blockly.WorkspaceSvg.prototype.cleanUp = function() { Blockly.Events.setGroup(true); var topBlocks = this.getTopBlocks(true); var cursorY = 0; @@ -830,7 +829,7 @@ Blockly.WorkspaceSvg.prototype.showContextMenu_ = function(e) { var cleanOption = {}; cleanOption.text = Blockly.Msg.CLEAN_UP; cleanOption.enabled = topBlocks.length > 1; - cleanOption.callback = this.cleanUp_.bind(this); + cleanOption.callback = this.cleanUp.bind(this); menuOptions.push(cleanOption); }