mirror of
https://github.com/google/blockly.git
synced 2026-01-10 10:27:08 +01:00
Respond to review comments in variable_map
This commit is contained in:
@@ -135,6 +135,8 @@ Blockly.FieldVariable.prototype.getText = function() {
|
||||
* variable.
|
||||
*/
|
||||
Blockly.FieldVariable.prototype.setValue = function(id) {
|
||||
// What do I do when id is null? That happens when undoing a change event
|
||||
// for the first time the value was set.
|
||||
var workspace = this.sourceBlock_.workspace;
|
||||
var variable = Blockly.Variables.getVariable(workspace, id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user