Skip to content

Commit 265fb17

Browse files
authored
fix workspace variable deleting bug (#10916)
1 parent 27d9708 commit 265fb17

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

pxtblocks/plugins/flyout/verticalFlyout.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import * as Blockly from "blockly";
22

3-
const MAX_CACHED_FLYOUTS = 20;
4-
53
export class VerticalFlyout implements Blockly.IFlyout {
64
horizontalLayout = false;
75
RTL: boolean;
@@ -142,10 +140,6 @@ export class VerticalFlyout implements Blockly.IFlyout {
142140
this.activeFlyout = new CachedFlyout(this.options);
143141
this.cached.push(this.activeFlyout);
144142

145-
if (this.cached.length >= MAX_CACHED_FLYOUTS) {
146-
this.cached.shift().dispose();
147-
}
148-
149143
this.element.appendChild(this.activeFlyout.createDom("g"));
150144
this.activeFlyout.init(this.targetWorkspace);
151145

0 commit comments

Comments
 (0)