mirror of
https://github.com/google/blockly.git
synced 2026-01-15 12:57:12 +01:00
Fix invalid reference to backpack
This commit is contained in:
@@ -842,7 +842,7 @@ Blockly.BlockSvg.prototype.showContextMenu_ = function(e) {
|
||||
callback: function() {
|
||||
if (Blockly.selected && Blockly.selected.isDeletable() &&
|
||||
Blockly.selected.workspace == Blockly.mainWorkspace) {
|
||||
Blockly.getMainWorkspace().backpack.addToBackpack(Blockly.selected);
|
||||
Blockly.getMainWorkspace().getBackpack().addToBackpack(Blockly.selected);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user