Merge pull request #300 from ciaranj/ciaranj-patch-1

Clearing the workspace now works even if a field is being edited
This commit is contained in:
Neil Fraser
2016-03-29 08:56:16 -07:00

View File

@@ -149,6 +149,7 @@ Blockly.Workspace.prototype.getAllBlocks = function() {
* Dispose of all blocks in workspace.
*/
Blockly.Workspace.prototype.clear = function() {
Blockly.WidgetDiv.hide();
var existingGroup = Blockly.Events.getGroup();
if (!existingGroup) {
Blockly.Events.setGroup(true);