@@ -386,8 +386,7 @@ if (typeof(PhpDebugBar) == 'undefined') {
386
386
this . settings = { } ;
387
387
388
388
// Reset options
389
- debugbar . options = debugbar . defaultOptions ;
390
- debugbar . setTheme ( debugbar . options . theme ) ;
389
+ debugbar . options = { ...debugbar . defaultOptions } ;
391
390
392
391
// Reset ajax handler
393
392
if ( debugbar . ajaxHandler ) {
@@ -398,6 +397,8 @@ if (typeof(PhpDebugBar) == 'undefined') {
398
397
debugbar . controls [ '__datasets' ] . get ( 'widget' ) . set ( 'autoshow' , $ ( this ) . is ( ':checked' ) ) ;
399
398
}
400
399
}
400
+
401
+ this . initialize ( debugbar . options ) ;
401
402
} ,
402
403
403
404
storeSetting : function ( key , value ) {
@@ -766,13 +767,13 @@ if (typeof(PhpDebugBar) == 'undefined') {
766
767
* @this {DebugBar}
767
768
*/
768
769
setHeight : function ( height ) {
769
- var min_h = 40 ;
770
- var max_h = $ ( window ) . innerHeight ( ) - this . $header . height ( ) - 10 ;
771
- height = Math . min ( height , max_h ) ;
772
- height = Math . max ( height , min_h ) ;
773
- this . $body . css ( 'height' , height ) ;
774
- localStorage . setItem ( 'phpdebugbar-height' , height ) ;
775
- this . recomputeBottomOffset ( ) ;
770
+ var min_h = 40 ;
771
+ var max_h = $ ( window ) . innerHeight ( ) - this . $header . height ( ) - 10 ;
772
+ height = Math . min ( height , max_h ) ;
773
+ height = Math . max ( height , min_h ) ;
774
+ this . $body . css ( 'height' , height ) ;
775
+ localStorage . setItem ( 'phpdebugbar-height' , height ) ;
776
+ this . recomputeBottomOffset ( ) ;
776
777
} ,
777
778
778
779
/**
0 commit comments