We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27d9708 commit 265fb17Copy full SHA for 265fb17
1 file changed
pxtblocks/plugins/flyout/verticalFlyout.ts
@@ -1,7 +1,5 @@
1
import * as Blockly from "blockly";
2
3
-const MAX_CACHED_FLYOUTS = 20;
4
-
5
export class VerticalFlyout implements Blockly.IFlyout {
6
horizontalLayout = false;
7
RTL: boolean;
@@ -142,10 +140,6 @@ export class VerticalFlyout implements Blockly.IFlyout {
142
140
this.activeFlyout = new CachedFlyout(this.options);
143
141
this.cached.push(this.activeFlyout);
144
145
- if (this.cached.length >= MAX_CACHED_FLYOUTS) {
146
- this.cached.shift().dispose();
147
- }
148
149
this.element.appendChild(this.activeFlyout.createDom("g"));
150
this.activeFlyout.init(this.targetWorkspace);
151
0 commit comments