File tree 1 file changed +8
-20
lines changed
1 file changed +8
-20
lines changed Original file line number Diff line number Diff line change @@ -295,27 +295,15 @@ function sceneUpdate(gd, subplot) {
295
295
296
296
// remove scene resources
297
297
scene . destroy = function destroy ( ) {
298
- if ( ( scene . fill2d ) &&
299
- ( scene . fill2d . destroy ) ) {
300
- scene . fill2d . destroy ( ) ; }
301
- if ( ( scene . scatter2d ) &&
302
- ( scene . scatter2d . destroy ) ) {
303
- scene . scatter2d . destroy ( ) ; }
304
- if ( ( scene . error2d ) &&
305
- ( scene . error2d . destroy ) ) {
306
- scene . error2d . destroy ( ) ; }
307
- if ( ( scene . line2d ) &&
308
- ( scene . line2d . destroy ) ) {
309
- scene . line2d . destroy ( ) ; }
310
- if ( ( scene . select2d ) &&
311
- ( scene . select2d . destroy ) ) {
312
- scene . select2d . destroy ( ) ; }
298
+ if ( scene . fill2d && scene . fill2d . destroy ) scene . fill2d . destroy ( ) ;
299
+ if ( scene . scatter2d && scene . scatter2d . destroy ) scene . scatter2d . destroy ( ) ;
300
+ if ( scene . error2d && scene . error2d . destroy ) scene . error2d . destroy ( ) ;
301
+ if ( scene . line2d && scene . line2d . destroy ) scene . line2d . destroy ( ) ;
302
+ if ( scene . select2d && scene . select2d . destroy ) scene . select2d . destroy ( ) ;
313
303
if ( scene . glText ) {
314
- scene . glText . forEach (
315
- function ( text ) {
316
- if ( text . destroy ) text . destroy ( ) ;
317
- }
318
- ) ;
304
+ scene . glText . forEach ( function ( text ) {
305
+ if ( text . destroy ) text . destroy ( ) ;
306
+ } ) ;
319
307
}
320
308
321
309
scene . lineOptions = null ;
You can’t perform that action at this time.
0 commit comments