Skip to content

Commit 5749beb

Browse files
author
Daniel Herzog
committed
Fixed Make Request after merge
1 parent fd3645a commit 5749beb

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

src/build-application/build_resource_manager_1_0.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ window.app.builders.ResourceManager["1.0"] = function(service)
1212
null,
1313
"network-logger",
1414
logger_service);
15-
new cls.RequestCraftingView("request_crafter", ui_strings.M_VIEW_LABEL_REQUEST_CRAFTER, "scroll", "", "");
15+
new cls.RequestCraftingView("request_crafter",
16+
ui_strings.M_VIEW_LABEL_REQUEST_CRAFTER,
17+
"scroll",
18+
"",
19+
"",
20+
logger_service);
1621
new cls.NetworkOptionsView("network_options",
1722
ui_strings.M_VIEW_LABEL_NETWORK_OPTIONS,
1823
"scroll network-options-container", "", "");

src/network/network_request_crafting_view.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
* @constructor
55
* @extends ViewBase
66
*/
7-
cls.RequestCraftingView = function(id, name, container_class, html, default_handler) {
7+
cls.RequestCraftingView = function(id, name, container_class, html, default_handler, service)
8+
{
9+
this._service = service;
810
this._input = null;
911
this._output = null;
1012
this._urlfield = null;
@@ -188,7 +190,6 @@ cls.RequestCraftingView = function(id, name, container_class, html, default_hand
188190
eh.change["request-crafter-url-change"] = this._handle_url_change_bound;
189191
eh.keyup["request-crafter-url-change"] = this._handle_url_change_bound;
190192

191-
this._service = window.network_logger;
192193
this._service.addListener("context-established", this._on_context_established_bound);
193194

194195
// for onchange and buffermanager eh.click["request-crafter-send"] = this._handle_send_request_bound;

src/network/network_service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ cls.NetworkLoggerEntryPrototype = function()
11801180
{
11811181
// In 99% of the cases, _current_response is used. It's only
11821182
// exposed for getting the ResourceInfo from the service directly.
1183-
return this.current_response;
1183+
return this._current_response;
11841184
});
11851185
this.__defineSetter__("current_response", function(){});
11861186
};

0 commit comments

Comments
 (0)