fix(boards): 修复block init时由于this指向变化导致数据读取出错
This commit is contained in:
@@ -539,7 +539,7 @@ export const sensor_dht11 = {
|
||||
.appendField(Blockly.Msg.MIXLY_PIN)
|
||||
.setCheck(Number);
|
||||
this.appendDummyInput("")
|
||||
.appendField(new Blockly.FieldDropdown(this.METHOD), "WHAT");
|
||||
.appendField(new Blockly.FieldDropdown(sensor_dht11.METHOD), "WHAT");
|
||||
this.setOutput(true, Number);
|
||||
var thisBlock = this;
|
||||
this.setTooltip(function () {
|
||||
|
||||
Reference in New Issue
Block a user