mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +01:00
Move alert/confirm/prompt to a new file, dialog.js (#5457)
* Migrate prompt/alert/confirm to dedicated module * Update core/blockly.js to pass through calls to prompt/alert/confirm to core/dialog.js * Update calls to Blockly.prompt/alert/confirm to dialog.prompt/alert/confirm * Fix typo and errant redeclaration of Blockly.prompt * Clarify JSDoc on customizing Blockly.dialog.alert/confirm/prompt
This commit is contained in:
@@ -375,7 +375,7 @@ Code.checkAllGeneratorFunctionsDefined = function(generator) {
|
||||
if (!valid) {
|
||||
var msg = 'The generator code for the following blocks not specified for ' +
|
||||
generator.name_ + ':\n - ' + missingBlockGenerators.join('\n - ');
|
||||
Blockly.alert(msg); // Assuming synchronous. No callback.
|
||||
Blockly.dialog.alert(msg); // Assuming synchronous. No callback.
|
||||
}
|
||||
return valid;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user