Skip to content

Commit

Permalink
fixes #640 -- don't match to blocks in the trash when looking for act…
Browse files Browse the repository at this point in the history
…ion names
  • Loading branch information
walterbender committed Mar 13, 2017
1 parent fe22961 commit 613da0d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -2793,6 +2793,10 @@ function Blocks(canvas, stage, refreshCanvas, trashcan, updateStage, getStageSca
var currentActionNames = [];
var currentStoreinNames = [];
for (var b = 0; b < this.blockList.length; b++) {
if (this.blockList[b].trash) {
continue;
}

if (this.blockList[b].name === 'action') {
if (this.blockList[b].connections[1] != null) {
console.log(this.blockList[this.blockList[b].connections[1]].value);
Expand Down

0 comments on commit 613da0d

Please sign in to comment.