mirror of
https://github.com/google/blockly.git
synced 2026-01-07 00:50:27 +01:00
Migrate selected from Blockly to Blockly.common (#5489)
* Add getSelected/setSelected to core/common.js * Migrate core to use Blockly.common.getSelected/setSelected instead of Blockly.selected * Migrate demos to use Blockly.common.getSelected/setSelected instead of Blockly.selected * Remove Blockly.selected * Use variable instead of calling common.getSelected() multiple times * Add accessor for selected on Blockly * Add renaming record for Blockly.selected -> Blockly.common.getSelected/setSelected
This commit is contained in:
@@ -84,6 +84,13 @@ const renamings = {
|
||||
hueToHex: {module: 'Blockly.utils.colour'},
|
||||
// Blockly.hideChaff() became
|
||||
// Blockly.common.getMainWorkspace().hideChaff(). See PR #5460.
|
||||
|
||||
// selected. See PR #5489.
|
||||
selected: {
|
||||
module: 'Blockly.common',
|
||||
get: 'getSelected',
|
||||
set: 'setSelected',
|
||||
},
|
||||
},
|
||||
},
|
||||
'Blockly.ContextMenu': {
|
||||
|
||||
Reference in New Issue
Block a user