Skip to content

Commit

Permalink
Port toolbar.js to ES6
Browse files Browse the repository at this point in the history
* adding classes to toolbar.js

* bug fix

* bug fix-1
  • Loading branch information
kushal-khare-official authored Jan 14, 2021
1 parent 0559c7a commit 901cc35
Show file tree
Hide file tree
Showing 2 changed files with 133 additions and 122 deletions.
7 changes: 4 additions & 3 deletions js/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -747,10 +747,11 @@ function Activity() {
svg += "</g>";

if (blocks.blockList[i].isCollapsible()) {
let y;
if (INLINECOLLAPSIBLES.indexOf(blocks.blockList[i].name) !== -1) {
let y = blocks.blockList[i].container.y + 4;
y = blocks.blockList[i].container.y + 4;
} else {
let y = blocks.blockList[i].container.y + 12;
y = blocks.blockList[i].container.y + 12;
}

svg +=
Expand Down Expand Up @@ -4708,7 +4709,7 @@ function Activity() {
toolbar.renderRunStepIcon(_doStepButton);
toolbar.renderAdvancedIcons(
() => {
logo.statsWindow = new StatsWindow();
if(!logo.statsWindow) logo.statsWindow = new StatsWindow();
},
doOpenPlugin,
deletePlugin,
Expand Down
Loading

0 comments on commit 901cc35

Please sign in to comment.