mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
[WIP] Merge procedures.js but needs discussion
This commit is contained in:
@@ -89,6 +89,7 @@ Blockly.Procedures.findLegalName = function(name, block) {
|
||||
// Flyouts can have multiple procedures called 'do something'.
|
||||
return name;
|
||||
}
|
||||
name = name.replace(/\s+/g, '');
|
||||
while (!Blockly.Procedures.isLegalName_(name, block.workspace, block)) {
|
||||
// Collision with another procedure.
|
||||
var r = name.match(/^(.*?)(\d+)$/);
|
||||
|
||||
@@ -1,20 +1,4 @@
|
||||
***************
|
||||
*** 99,104 ****
|
||||
// Flyouts can have multiple procedures called 'procedure'.
|
||||
return name;
|
||||
}
|
||||
while (!Blockly.Procedures.isLegalName(name, block.workspace, block)) {
|
||||
// Collision with another procedure.
|
||||
var r = name.match(/^(.*?)(\d+)$/);
|
||||
--- 99,105 ----
|
||||
// Flyouts can have multiple procedures called 'procedure'.
|
||||
return name;
|
||||
}
|
||||
+ name = name.replace(/\s+/g, '');
|
||||
while (!Blockly.Procedures.isLegalName(name, block.workspace, block)) {
|
||||
// Collision with another procedure.
|
||||
var r = name.match(/^(.*?)(\d+)$/);
|
||||
***************
|
||||
*** 255,266 ****
|
||||
* @param {!Blockly.Workspace} workspace The workspace to delete callers from.
|
||||
* @param {!Array.<string>} paramNames Array of new parameter names.
|
||||
|
||||
Reference in New Issue
Block a user