mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 01:20:30 +00:00
Fixed http-request bind-status and bind-progress option names (#7595)
This commit is contained in:
parent
6954fbee51
commit
eff158b1ae
@ -106,8 +106,8 @@ function HttpClientRequest(options) {
|
|||||||
this.wiki = options.wiki;
|
this.wiki = options.wiki;
|
||||||
this.completionActions = options.oncompletion;
|
this.completionActions = options.oncompletion;
|
||||||
this.progressActions = options.onprogress;
|
this.progressActions = options.onprogress;
|
||||||
this.bindStatus = options["bind-status"];
|
this.bindStatus = options["bindStatus"];
|
||||||
this.bindProgress = options["bind-progress"];
|
this.bindProgress = options["bindProgress"];
|
||||||
this.method = options.method || "GET";
|
this.method = options.method || "GET";
|
||||||
this.body = options.body || "";
|
this.body = options.body || "";
|
||||||
this.variables = options.variables;
|
this.variables = options.variables;
|
||||||
@ -132,7 +132,7 @@ HttpClientRequest.prototype.send = function(callback) {
|
|||||||
var self = this,
|
var self = this,
|
||||||
setBinding = function(title,text) {
|
setBinding = function(title,text) {
|
||||||
if(title) {
|
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) {
|
if(this.url) {
|
||||||
|
Loading…
Reference in New Issue
Block a user