From eff158b1ae44332b6b0c8b8d3907b24c14ebf57d Mon Sep 17 00:00:00 2001 From: btheado Date: Sun, 9 Jul 2023 10:50:48 -0500 Subject: [PATCH] Fixed http-request bind-status and bind-progress option names (#7595) --- core/modules/utils/dom/http.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/modules/utils/dom/http.js b/core/modules/utils/dom/http.js index ba4b3d2a1..5b1f0abe6 100644 --- a/core/modules/utils/dom/http.js +++ b/core/modules/utils/dom/http.js @@ -106,8 +106,8 @@ function HttpClientRequest(options) { this.wiki = options.wiki; this.completionActions = options.oncompletion; this.progressActions = options.onprogress; - this.bindStatus = options["bind-status"]; - this.bindProgress = options["bind-progress"]; + this.bindStatus = options["bindStatus"]; + this.bindProgress = options["bindProgress"]; this.method = options.method || "GET"; this.body = options.body || ""; this.variables = options.variables; @@ -132,7 +132,7 @@ HttpClientRequest.prototype.send = function(callback) { var self = this, setBinding = function(title,text) { if(title) { - this.wiki.addTiddler(new $tw.Tiddler({title: title, text: text})); + self.wiki.addTiddler(new $tw.Tiddler({title: title, text: text})); } }; if(this.url) {