Skip to content

Commit dcc502f

Browse files
committed
Properly update the return value view when continuing.
1 parent 737dcd6 commit dcc502f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/ecma-debugger/view_return_values.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ cls.ReturnValuesView = function(id, name, container_class)
3737
}
3838
else
3939
{
40-
this._create_view_bound = null;
40+
this._remove_bound_view();
4141
container.clearAndRender(this._return_values_no_content());
4242
}
4343
};
@@ -47,6 +47,11 @@ cls.ReturnValuesView = function(id, name, container_class)
4747
this._container.clearAndRender(templates.return_values(return_values, this._search_term));
4848
};
4949

50+
this._remove_bound_view = function()
51+
{
52+
this._create_view_bound = null;
53+
};
54+
5055
this._return_values_no_content = function()
5156
{
5257
return (
@@ -94,6 +99,7 @@ cls.ReturnValuesView = function(id, name, container_class)
9499

95100
window.messages.addListener("view-created", this._on_view_created.bind(this));
96101
window.messages.addListener("view-destroyed", this._on_view_destroyed.bind(this));
102+
window.messages.addListener("thread-continue-event", this._remove_bound_view.bind(this));
97103

98104
window.event_handlers.input["return-values-text-search"] = function(event, target)
99105
{

src/ui-strings/ui_strings-en.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1708,5 +1708,5 @@ ui_strings.S_RETURN_VALUES_FUNCTION_TO = "Returned to %s:%s";
17081708
ui_strings.M_VIEW_LABEL_RETURN_VALUES = "Return Values";
17091709

17101710
/* DESC: The content of the return value section when there are not return values. */
1711-
ui_strings.M_VIEW_LABEL_NO_RETURN_VALUES = "No return Values";
1711+
ui_strings.M_VIEW_LABEL_NO_RETURN_VALUES = "No return values";
17121712

0 commit comments

Comments
 (0)