Skip to content

Commit 8cf2991

Browse files
committed
beta2
1 parent d8da344 commit 8cf2991

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

docs/assets/debugbar/debugbar.js

+10-9
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,7 @@ if (typeof(PhpDebugBar) == 'undefined') {
386386
this.settings = {};
387387

388388
// Reset options
389-
debugbar.options = debugbar.defaultOptions;
390-
debugbar.setTheme(debugbar.options.theme);
389+
debugbar.options = { ...debugbar.defaultOptions };
391390

392391
// Reset ajax handler
393392
if (debugbar.ajaxHandler) {
@@ -398,6 +397,8 @@ if (typeof(PhpDebugBar) == 'undefined') {
398397
debugbar.controls['__datasets'].get('widget').set('autoshow', $(this).is(':checked'));
399398
}
400399
}
400+
401+
this.initialize(debugbar.options);
401402
},
402403

403404
storeSetting: function(key, value) {
@@ -766,13 +767,13 @@ if (typeof(PhpDebugBar) == 'undefined') {
766767
* @this {DebugBar}
767768
*/
768769
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();
776777
},
777778

778779
/**

0 commit comments

Comments
 (0)