@@ -1162,7 +1162,7 @@ Yet another is that there is an internal error. The internal error message is:
11621162 saveCode = "False" ;
11631163 }
11641164 history_dfd = Promise . resolve ( {
1165- history_dfd : history_dfd ,
1165+ history_dfd : scrubber_dfd ,
11661166 saveCode : saveCode ,
11671167 } ) ;
11681168 return history_dfd ;
@@ -1293,36 +1293,33 @@ Yet another is that there is an internal error. The internal error message is:
12931293 // Make sure that the history scrubber is fully initialized AND the code has been run
12941294 // before we start logging stuff.
12951295 var self = this ;
1296- Promise . all ( promise_list ) . then (
1297- function ( mod ) {
1298- $ ( this . runButton ) . removeAttr ( "disabled" ) ;
1299- if ( ! noUI ) {
1300- if ( this . slideit ) {
1301- $ ( this . historyScrubber ) . on (
1302- "slidechange" ,
1303- this . slideit . bind ( this )
1304- ) ;
1296+ Promise . all ( promise_list )
1297+ . then (
1298+ function ( mod ) {
1299+ $ ( this . runButton ) . removeAttr ( "disabled" ) ;
1300+ if ( ! noUI ) {
1301+ if ( this . slideit ) {
1302+ $ ( this . historyScrubber ) . on (
1303+ "slidechange" ,
1304+ this . slideit . bind ( this )
1305+ ) ;
1306+ }
1307+ $ ( this . historyScrubber ) . slider ( "enable" ) ;
13051308 }
1306- $ ( this . historyScrubber ) . slider ( "enable" ) ;
1307- }
1308- this . errLastRun = false ;
1309- this . errinfo = "success" ;
1310- } . bind ( this ) ,
1311- function ( err ) {
1312- if ( typeof history_dfd !== "undefined" ) {
1313- history_dfd . done ( function ( ) {
1314- $ ( self . runButton ) . removeAttr ( "disabled" ) ;
1315- $ ( self . historyScrubber ) . on (
1316- "slidechange" ,
1317- self . slideit . bind ( self )
1318- ) ;
1319- $ ( self . historyScrubber ) . slider ( "enable" ) ;
1320- self . errinfo = err . toString ( ) ;
1321- self . addErrorMessage ( err ) ;
1322- } ) ;
1323- }
1324- }
1325- ) ;
1309+ this . errLastRun = false ;
1310+ this . errinfo = "success" ;
1311+ } . bind ( this )
1312+ )
1313+ . catch ( function ( err ) {
1314+ $ ( self . runButton ) . removeAttr ( "disabled" ) ;
1315+ $ ( self . historyScrubber ) . on (
1316+ "slidechange" ,
1317+ self . slideit . bind ( self )
1318+ ) ;
1319+ $ ( self . historyScrubber ) . slider ( "enable" ) ;
1320+ self . errinfo = err . toString ( ) ;
1321+ self . addErrorMessage ( err ) ;
1322+ } ) ;
13261323 if ( typeof window . allVisualizers != "undefined" ) {
13271324 $ . each ( window . allVisualizers , function ( i , e ) {
13281325 e . redrawConnectors ( ) ;
0 commit comments