File tree Expand file tree Collapse file tree 1 file changed +21
-17
lines changed Expand file tree Collapse file tree 1 file changed +21
-17
lines changed Original file line number Diff line number Diff line change 429
429
}
430
430
431
431
function cleanup ( ) {
432
- if ( hint ) {
433
- hint . destroy ( ) ;
434
- }
435
- backdrop . remove ( ) ;
436
- if ( base . currentStep . element ) {
437
- unhighlighElement ( base . currentStep . element ) ;
438
- }
439
- if ( _ . isArray ( base . currentStep . highlightElements ) ) {
440
- _ . each ( base . currentStep . highlightElements , function ( element ) {
441
- unhighlighElement ( element ) ;
442
- } ) ;
443
- }
432
+ try {
433
+ if ( hint ) {
434
+ hint . destroy ( ) ;
435
+ }
436
+ backdrop . remove ( ) ;
437
+ if ( base . currentStep . element ) {
438
+ unhighlighElement ( base . currentStep . element ) ;
439
+ }
440
+ if ( _ . isArray ( base . currentStep . highlightElements ) ) {
441
+ _ . each ( base . currentStep . highlightElements , function ( element ) {
442
+ unhighlighElement ( element ) ;
443
+ } ) ;
444
+ }
444
445
445
- if ( modal ) {
446
- modal . destroy ( ) ;
446
+ if ( modal ) {
447
+ modal . destroy ( ) ;
448
+ }
449
+ modal = null ;
450
+ hint = null ;
451
+ backdrop = null ;
452
+ } catch ( e ) {
453
+ // silent failure
447
454
}
448
- modal = null ;
449
- hint = null ;
450
- backdrop = null ;
451
455
}
452
456
453
457
function isFunction ( value ) {
You can’t perform that action at this time.
0 commit comments