Skip to content

Commit

Permalink
Merge pull request #334 from entrylabs/hotfix/variable_container_lang
Browse files Browse the repository at this point in the history
variable_container lang fixed
  • Loading branch information
chanlee committed Jun 8, 2016
2 parents 96af118 + dd81036 commit 50f61d1
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
16 changes: 8 additions & 8 deletions dist/entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -856,8 +856,8 @@ Blockly.Blocks.arduino_toggle_led = {init:function() {
this.setNextStatement(!0);
}};
Entry.block.arduino_toggle_led = function(b, a) {
var c = a.getNumberValue("VALUE"), d = a.getField("OPERATOR");
Entry.hw.setDigitalPortValue(c, "on" == d ? 255 : 0);
var c = a.getNumberValue("VALUE"), d = "on" == a.getField("OPERATOR") ? 255 : 0;
Entry.hw.setDigitalPortValue(c, d);
return a.callReturn();
};
Blockly.Blocks.arduino_toggle_pwm = {init:function() {
Expand Down Expand Up @@ -1057,8 +1057,8 @@ Blockly.Blocks.dplay_select_led = {init:function() {
Entry.block.dplay_select_led = function(b, a) {
var c = a.getField("PORT"), d = 7;
"7" == c ? d = 7 : "8" == c ? d = 8 : "9" == c ? d = 9 : "10" == c && (d = 10);
c = a.getField("OPERATOR");
Entry.hw.setDigitalPortValue(d, "on" == c ? 255 : 0);
c = "on" == a.getField("OPERATOR") ? 255 : 0;
Entry.hw.setDigitalPortValue(d, c);
return a.callReturn();
};
Blockly.Blocks.dplay_get_switch_status = {init:function() {
Expand Down Expand Up @@ -2068,10 +2068,10 @@ Entry.block.wait_second = function(b, a) {
}
a.isStart = !0;
a.timeFlag = 1;
var c = a.getNumberValue("SECOND", a);
var c = a.getNumberValue("SECOND", a), c = 60 / (Entry.FPS || 60) * c * 1E3;
setTimeout(function() {
a.timeFlag = 0;
}, 60 / (Entry.FPS || 60) * c * 1E3);
}, c);
return a;
};
Blockly.Blocks.repeat_basic = {init:function() {
Expand Down Expand Up @@ -13393,7 +13393,7 @@ Entry.VariableContainer.prototype.createDom = function(b) {
c = Entry.createElement("li");
c.addClass("entryVariableAddWorkspace");
c.addClass("entryVariableListElementWorkspace");
c.innerHTML = "+ " + Lang.Workspace.variable_create;
c.innerHTML = "+ " + Lang.Workspace.variable_add;
var f = this;
this.variableAddButton_ = c;
c.bindOnClick(function(b) {
Expand Down Expand Up @@ -13427,7 +13427,7 @@ Entry.VariableContainer.prototype.createDom = function(b) {
c = Entry.createElement("li");
c.addClass("entryVariableAddWorkspace");
c.addClass("entryVariableListElementWorkspace");
c.innerHTML = "+ " + Lang.Workspace.function_create;
c.innerHTML = "+ " + Lang.Workspace.function_add;
this.functionAddButton_ = c;
c.bindOnClick(function(b) {
b = a._getBlockMenu();
Expand Down
Loading

0 comments on commit 50f61d1

Please sign in to comment.