Skip to content

Commit db039b3

Browse files
author
Chris K
committed
DFL-3404 Listeners panel is shown after canceling remote connecting though the client doesn't support the feature
1 parent 509822a commit db039b3

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/client/client.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ ui_framework.layouts.dom_rough_layout =
545545
{
546546
name: 'dom_panel',
547547
width: 350,
548-
tabs: function(services)
548+
get_tabs: function(services)
549549
{
550550
if (services['ecmascript-debugger'].satisfies_version(6, 11))
551551
{
@@ -582,7 +582,7 @@ ui_framework.layouts.js_rough_layout =
582582
children:
583583
[
584584
{
585-
tabs: function(services)
585+
get_tabs: function(services)
586586
{
587587
return services['ecmascript-debugger'].major_version > 5 ?
588588
['scripts-side-panel', 'breakpoints-side-panel', 'js-search'] :
@@ -651,7 +651,7 @@ ui_framework.layouts.storage_rough_layout =
651651
height: 1000,
652652
children: [ {
653653
height: 1000,
654-
tabs: function(services)
654+
get_tabs: function(services)
655655
{
656656
var cookie_module = 'cookies';
657657
if(services["cookie-manager"] && services["cookie-manager"].is_implemented)
@@ -674,11 +674,10 @@ ui_framework.layouts.console_rough_layout =
674674
ui_framework.layouts.main_layout =
675675
{
676676
id: 'main-view',
677-
// tab (and tabbar) can either be a layout list
678-
// or a function returning a layout list
677+
// tab and tabbar can have an according get_ function.
679678
// the function gets called with the services returned
680679
// and created depending on Scope.HostInfo
681-
tabs: function(services)
680+
get_tabs: function(services)
682681
{
683682
// return a layout depending on services
684683
// e.g. services['ecmascript-debugger'].version

src/ui-scripts/cells.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -292,9 +292,9 @@
292292
{
293293
["tabs", "tabbar"].forEach(function(prop)
294294
{
295-
if (rough_cell[prop] && typeof rough_cell[prop] == "function")
295+
if (rough_cell["get_" + prop] && typeof rough_cell["get_" + prop] == "function")
296296
{
297-
rough_cell[prop] = rough_cell[prop](services);
297+
rough_cell[prop] = rough_cell["get_" + prop](services);
298298
}
299299
});
300300

0 commit comments

Comments
 (0)