diff --git a/core/field_textdropdown.js b/core/field_textdropdown.js index 4e192a33f6..2736f5c302 100644 --- a/core/field_textdropdown.js +++ b/core/field_textdropdown.js @@ -140,7 +140,7 @@ Blockly.FieldTextDropdown.prototype.showEditor_ = function() { * (human-readable text, language-neutral name). * @private */ -Blockly.FieldTextDropdown.prototype.getOptions_ = Blockly.FieldDropdown.prototype.getOptions_; +Blockly.FieldTextDropdown.prototype.getOptions = Blockly.FieldDropdown.prototype.getOptions; /** * Position a drop-down arrow at the appropriate location at render-time. @@ -156,6 +156,13 @@ Blockly.FieldTextDropdown.prototype.positionArrow = Blockly.FieldDropdown.protot */ Blockly.FieldTextDropdown.prototype.showDropdown_ = Blockly.FieldDropdown.prototype.showEditor_; +/** + * Handle the selection of an item in the dropdown menu. + * @param {!goog.ui.Menu} menu The Menu component clicked. + * @param {!goog.ui.MenuItem} menuItem The MenuItem selected within menu. + */ +Blockly.FieldTextDropdown.prototype.onItemSelected = Blockly.FieldDropdown.prototype.onItemSelected; + /** * Callback when the drop-down menu is hidden. */