File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,14 @@ class MinimapFindAndReplaceBinding {
2424 }
2525
2626 destroy ( ) {
27- let id
28- for ( id in this . subscriptionsByMarkerId ) {
29- const sub = this . subscriptionsByMarkerId [ id ] ; sub . dispose ( )
27+ const subscriptionsByMarkerIdKeys = Object . keys ( this . subscriptionsByMarkerId )
28+ for ( let i = 0 , len = subscriptionsByMarkerIdKeys . length ; i < len ; i ++ ) {
29+ this . subscriptionsByMarkerId [ subscriptionsByMarkerIdKeys [ i ] ] . dispose ( )
3030 }
31- for ( id in this . decorationsByMarkerId ) {
32- const decoration = this . decorationsByMarkerId [ id ] ; decoration . destroy ( )
31+
32+ const decorationsByMarkerIdKeys = Object . keys ( this . decorationsByMarkerId )
33+ for ( let i = 0 , len = decorationsByMarkerIdKeys . length ; i < len ; i ++ ) {
34+ this . decorationsByMarkerId [ decorationsByMarkerIdKeys [ i ] ] . destroy ( )
3335 }
3436
3537 this . subscriptions . dispose ( )
You can’t perform that action at this time.
0 commit comments