Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions js/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -1666,6 +1666,11 @@ class Activity {
};

this._doFastButton = env => {
// Prevent spam-clicking by checking if already running
if (this.logo._alreadyRunning) {
return;
}

this._onResize();
this.blocks.activeBlock = null;
hideDOMLabel();
Expand Down
2 changes: 1 addition & 1 deletion js/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -2970,7 +2970,7 @@ class Blocks {
thisBlock = this.highlightedBlock;
}

if (thisBlock !== null) {
if (thisBlock !== null && this.blockList[thisBlock]) {
this.blockList[thisBlock].unhighlight();
}

Expand Down
6 changes: 4 additions & 2 deletions js/blocks/__tests__/GraphicsBlocks.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ global.ValueBlock = class {
}
};

global.FlowBlock = class extends global.ValueBlock {};
global.FlowBlock = class extends global.ValueBlock { };
global.FlowClampBlock = class extends global.FlowBlock {
makeMacro = jest.fn();
};
Expand Down Expand Up @@ -80,7 +80,9 @@ describe("GraphicsBlocks", () => {
};

activity = {
blocks: {},
blocks: {
blockList: []
},
errorMsg: jest.fn(),
turtles: {
companionTurtle: jest.fn(() => 0),
Expand Down
Loading