mirror of
https://github.com/google/blockly.git
synced 2026-01-09 01:50:11 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user