mirror of
https://github.com/google/blockly.git
synced 2025-12-15 22:00:07 +01:00
Migrate core/widgetdiv.js to goog.module syntax (#5331)
* Migrate core/widgetdiv.js to ES6 const/let * Migrate core/widgetdiv.js to goog.module * Migrate core/widgetdiv.js to named requires * clang-format core/widgetdiv.js * Mark WidgetDiv.DIV as deprecated and refactor callers to use setters/getters * Fix deprecation date * Refactor tests to make setDiv() in core/widgetdiv.js test-only * Fix type annotations for WidgetDiv.DIV and move test cleanup into sharedTestTeardown
This commit is contained in:
@@ -68,7 +68,7 @@ CustomFields.FieldPitch.NOTES = 'C3 D3 E3 F3 G3 A3 B3 C4 D4 E4 F4 G4 A4'.split(/
|
||||
CustomFields.FieldPitch.prototype.showEditor_ = function() {
|
||||
CustomFields.FieldPitch.superClass_.showEditor_.call(this);
|
||||
|
||||
var div = Blockly.WidgetDiv.DIV;
|
||||
var div = Blockly.WidgetDiv.getDiv();
|
||||
if (!div.firstChild) {
|
||||
// Mobile interface uses Blockly.prompt.
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user