Skip to content

Commit 524a2ae

Browse files
author
Chris K
committed
DFL-3422 Content from one panel showing up in another when clicking fast
1 parent 7bc6d35 commit 524a2ae

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/ecma-debugger/objectinspection.6.0/baseview.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ cls.EcmascriptDebugger["6.0"].InspectionBaseView = function()
1212

1313
this.createView = function(container)
1414
{
15+
this._is_destroyed = false;
1516
var data_model = this._data || window.inspections && window.inspections[this._cur_data];
1617
if (data_model)
1718
{
@@ -38,6 +39,9 @@ cls.EcmascriptDebugger["6.0"].InspectionBaseView = function()
3839

3940
this._create_view = function(container, data_model)
4041
{
42+
if (this._is_destroyed)
43+
return;
44+
4145
var tmpl = window.templates.inspected_js_object(data_model, false,
4246
null, this._searchterm);
4347
container.clearAndRender(tmpl);
@@ -54,6 +58,11 @@ cls.EcmascriptDebugger["6.0"].InspectionBaseView = function()
5458

5559
this._tmpl_no_content = function(){return []};
5660

61+
this.ondestroy = function()
62+
{
63+
this._is_destroyed = true;
64+
}
65+
5766
}
5867

5968
cls.EcmascriptDebugger["6.0"].InspectionBaseView.prototype = ViewBase;

0 commit comments

Comments
 (0)