Skip to content

Commit cf225ea

Browse files
committed
Remove container on destroy and check if it's available on create.
1 parent 489815d commit cf225ea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ecma-debugger/return_values_view.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,13 @@ cls.ReturnValuesView = function(id, name, container_class)
4747

4848
this._create_view = function(return_values)
4949
{
50-
this._container.clearAndRender(templates.return_values(return_values, this._search_term));
50+
if (this._container)
51+
this._container.clearAndRender(templates.return_values(return_values, this._search_term));
5152
};
5253

5354
this.ondestroy = function()
5455
{
56+
this._container = null;
5557
this._text_search.cleanup();
5658
};
5759

0 commit comments

Comments
 (0)