mirror of
https://github.com/google/blockly.git
synced 2026-01-16 05:17:09 +01:00
Merge pull request #663 from picklesrus/develop-fix-xml-load
Fix #648. It was calling method on the wrong object. Broken by refact…
This commit is contained in:
@@ -735,7 +735,7 @@ WorkspaceFactoryController.prototype.importFile = function(file, importMode) {
|
||||
|
||||
// Confirm that the user wants to override their current toolbox.
|
||||
var hasToolboxElements = controller.model.hasElements() ||
|
||||
controller.getAllBlocks().length > 0;
|
||||
controller.toolboxWorkspace.getAllBlocks().length > 0;
|
||||
if (hasToolboxElements &&
|
||||
!confirm('Are you sure you want to import? You will lose your '
|
||||
+ 'current toolbox. ')) {
|
||||
|
||||
Reference in New Issue
Block a user