language-neutral text -> language-neutral id

This commit is contained in:
Andrew n marshall
2019-02-07 10:22:36 -08:00
committed by GitHub
parent 74e5c49e0d
commit 114171ada8

View File

@@ -609,8 +609,8 @@ Blockly.TestBlocks.addDynamicDropdownOption_ = function() {
if (text) {
// Do not remove this log! Helps you know if it was added correctly.
console.log('Adding option: ' + text);
// The option is an array containing human-readable text and
// language-neutral text.
// The option is an array containing human-readable text and a
// language-neutral id.
Blockly.TestBlocks.dynamicDropdownOptions_.push(
[text, 'OPTION' + Blockly.TestBlocks.dynamicDropdownOptions_.length]);
}
@@ -630,8 +630,8 @@ Blockly.TestBlocks.removeDynamicDropdownOption_ = function() {
for (var i = 0, option;
option = Blockly.TestBlocks.dynamicDropdownOptions_[i];
i++) {
// The option is an array containing human-readable text and
// language-neutral text, we'll compare against the human-readable text.
// The option is an array containing human-readable text and a
// language-neutral id, we'll compare against the human-readable text.
if (option[0] == text) {
// Do not remove this log! Helps you know if it was removed correctly.
console.log('Removing option: ' + text);