mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Make disposeUses private
This commit is contained in:
parent
bf6220cb42
commit
cdbfce87de
1 changed files with 3 additions and 2 deletions
|
@ -269,8 +269,9 @@ Blockly.Variables.getUses = function(name, workspace) {
|
|||
/**
|
||||
* When a variable is deleted, find and dispose of all uses of it.
|
||||
* @param {!Array.<!Blockly.Block>} uses An array of blocks using the variable.
|
||||
* @private
|
||||
*/
|
||||
Blockly.Variables.disposeUses = function(uses) {
|
||||
Blockly.Variables.disposeUses_ = function(uses) {
|
||||
Blockly.Events.setGroup(true);
|
||||
for (var i = 0; i < uses.length; i++) {
|
||||
uses[i].dispose(true, false);
|
||||
|
@ -292,7 +293,7 @@ Blockly.Variables.delete = function(name, workspace) {
|
|||
Blockly.Msg.DELETE_VARIABLE_CONFIRMATION.replace('%1', uses.length).
|
||||
replace('%2', name));
|
||||
}
|
||||
Blockly.Variables.disposeUses(uses);
|
||||
Blockly.Variables.disposeUses_(uses);
|
||||
workspace.variableList.splice(variableIndex, 1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue