diff --git a/CHANGELOG.md b/CHANGELOG.md
index c63bdcf2..e63d5028 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
+## [1.10.1] - 2020-10-26
+### Fixed
+- Several bugs in [RepetitiveRequests](https://chird.github.io/meteoJS/doc/module-meteoJS_repetitiveRequests.RepetitiveRequests.html).
+ Caution: If you set `responseType` to 'json', you can't read the
+ `responseText`-Property anymore.
+
## [1.10.0] - 2020-10-01
### Added
- Thermodynamic diagram: Better and faster styling for parcels. Therefore a new
@@ -93,7 +99,8 @@ will not work anymore, until you pass a callback to `getTimeText`.
### Fixed
- Some tests with DOM usage.
-[Unreleased]: https://github.com/chird/meteoJS/compare/v1.10.0...HEAD
+[Unreleased]: https://github.com/chird/meteoJS/compare/v1.10.1...HEAD
+[1.10.1]: https://github.com/chird/meteoJS/compare/v1.10.0...v1.10.1
[1.10.0]: https://github.com/chird/meteoJS/compare/v1.9.0...v1.10.0
[1.9.0]: https://github.com/chird/meteoJS/compare/v1.8.1...v1.9.0
[1.8.1]: https://github.com/chird/meteoJS/compare/v1.8.0...v1.8.1
diff --git a/doc/Modelviewer.js.html b/doc/Modelviewer.js.html
index 4125eb50..b6d9759b 100644
--- a/doc/Modelviewer.js.html
+++ b/doc/Modelviewer.js.html
@@ -276,7 +276,7 @@
Source: Modelviewer.js
diff --git a/doc/RepetitiveRequests.js.html b/doc/RepetitiveRequests.js.html
index 1057f8d4..fb101838 100644
--- a/doc/RepetitiveRequests.js.html
+++ b/doc/RepetitiveRequests.js.html
@@ -203,7 +203,7 @@ Source: RepetitiveRequests.js
* @type string
*/
get responseType() {
- return this._password;
+ return this._responseType;
}
set responseType(responseType) {
this._responseType = responseType;
@@ -213,7 +213,7 @@ Source: RepetitiveRequests.js
* Start repetitive requests. Makes immediatly the first request.
*/
start() {
- this.isStarted = true;
+ this._isStarted = true;
this._startRequest();
}
@@ -222,9 +222,11 @@ Source: RepetitiveRequests.js
* former request creates a response.
*/
stop() {
- this.isStarted = false;
- if (this.timeoutID !== undefined)
- clearTimeout(this.timeoutID);
+ this._isStarted = false;
+ if (this._timeoutID !== undefined) {
+ clearTimeout(this._timeoutID);
+ this._timeoutID = undefined;
+ }
}
/**
@@ -251,12 +253,14 @@ Source: RepetitiveRequests.js
* @private
*/
_startRequest() {
- if (this._timeoutID !== undefined)
+ if (this._timeoutID !== undefined) {
clearTimeout(this._timeoutID);
+ this._timeoutID = undefined;
+ }
this._makeRequest()
.then(({ request }) => {
- if (!this.isStarted)
+ if (!this._isStarted)
return;
let delay = this._defaultTimeout;
@@ -264,7 +268,7 @@ Source: RepetitiveRequests.js
// Read ResponseHeader
let cacheControl = request.getResponseHeader('Cache-Control');
if (cacheControl !== null) {
- let maxAges = /(^|,)max-age=([0-9]+)($|,)/.exec(cacheControl);
+ let maxAges = /(^|,\s*)max-age=([0-9]+)($|\s*,)/.exec(cacheControl);
if (maxAges !== null &&
maxAges[2] > 0)
delay = Math.round(maxAges[2]*1000);
@@ -275,7 +279,7 @@ Source: RepetitiveRequests.js
if (delay !== undefined)
this._planRequest({ delay });
}, ({ request } = {}) => {
- if (!this.isStarted)
+ if (!this._isStarted)
return;
if (request === undefined)
@@ -356,7 +360,7 @@ Source: RepetitiveRequests.js
diff --git a/doc/Sounding.js.html b/doc/Sounding.js.html
index deace207..d25b7692 100644
--- a/doc/Sounding.js.html
+++ b/doc/Sounding.js.html
@@ -277,7 +277,7 @@ Source: Sounding.js
diff --git a/doc/Synview.js.html b/doc/Synview.js.html
index 2cec82b7..ba5c8961 100644
--- a/doc/Synview.js.html
+++ b/doc/Synview.js.html
@@ -201,7 +201,7 @@ Source: Synview.js
diff --git a/doc/ThermodynamicDiagram.js.html b/doc/ThermodynamicDiagram.js.html
index d59e5910..400a598f 100644
--- a/doc/ThermodynamicDiagram.js.html
+++ b/doc/ThermodynamicDiagram.js.html
@@ -300,7 +300,7 @@ Source: ThermodynamicDiagram.js
diff --git a/doc/ThermodynamicDiagramPluggable.js.html b/doc/ThermodynamicDiagramPluggable.js.html
index 429dee6b..89e01ed5 100644
--- a/doc/ThermodynamicDiagramPluggable.js.html
+++ b/doc/ThermodynamicDiagramPluggable.js.html
@@ -231,7 +231,7 @@ Source: ThermodynamicDiagramPluggable.js
diff --git a/doc/Timeline.js.html b/doc/Timeline.js.html
index 5b563e87..1b3891c5 100644
--- a/doc/Timeline.js.html
+++ b/doc/Timeline.js.html
@@ -843,7 +843,7 @@ Source: Timeline.js
diff --git a/doc/Tooltip.js.html b/doc/Tooltip.js.html
index f71e2f5e..0aeae39a 100644
--- a/doc/Tooltip.js.html
+++ b/doc/Tooltip.js.html
@@ -155,7 +155,7 @@ Source: Tooltip.js
diff --git a/doc/base_Collection.js.html b/doc/base_Collection.js.html
index fcfdcc89..bf6e04ae 100644
--- a/doc/base_Collection.js.html
+++ b/doc/base_Collection.js.html
@@ -300,7 +300,7 @@ Source: base/Collection.js
diff --git a/doc/base_Named.js.html b/doc/base_Named.js.html
index f1c49e2f..9e2e9bc9 100644
--- a/doc/base_Named.js.html
+++ b/doc/base_Named.js.html
@@ -161,7 +161,7 @@ Source: base/Named.js
diff --git a/doc/base_NamedCollection.js.html b/doc/base_NamedCollection.js.html
index 446600b1..98291605 100644
--- a/doc/base_NamedCollection.js.html
+++ b/doc/base_NamedCollection.js.html
@@ -106,7 +106,7 @@ Source: base/NamedCollection.js
diff --git a/doc/base_Unique.js.html b/doc/base_Unique.js.html
index a929932b..5b7e47c4 100644
--- a/doc/base_Unique.js.html
+++ b/doc/base_Unique.js.html
@@ -81,7 +81,7 @@ Source: base/Unique.js
diff --git a/doc/base_UniqueNamed.js.html b/doc/base_UniqueNamed.js.html
index 3a271bb4..b6d27607 100644
--- a/doc/base_UniqueNamed.js.html
+++ b/doc/base_UniqueNamed.js.html
@@ -93,7 +93,7 @@ Source: base/UniqueNamed.js
diff --git a/doc/calc.js.html b/doc/calc.js.html
index e60ecd01..07b9c79e 100644
--- a/doc/calc.js.html
+++ b/doc/calc.js.html
@@ -523,7 +523,7 @@ Source: calc.js
diff --git a/doc/events.js.html b/doc/events.js.html
index 3090c849..7203b28c 100644
--- a/doc/events.js.html
+++ b/doc/events.js.html
@@ -165,7 +165,7 @@ Source: Events.js
diff --git a/doc/external-Event.html b/doc/external-Event.html
index 97994ac0..b6adf6f4 100644
--- a/doc/external-Event.html
+++ b/doc/external-Event.html
@@ -51,7 +51,7 @@ Event
diff --git a/doc/external-HTMLElement.html b/doc/external-HTMLElement.html
index e72ac464..86cbb939 100644
--- a/doc/external-HTMLElement.html
+++ b/doc/external-HTMLElement.html
@@ -51,7 +51,7 @@ HTMLElement
diff --git a/doc/external-SVG.html b/doc/external-SVG.html
index 1107737c..8e8d0cfa 100644
--- a/doc/external-SVG.html
+++ b/doc/external-SVG.html
@@ -51,7 +51,7 @@ SVG
diff --git a/doc/external-XMLHttpRequest.html b/doc/external-XMLHttpRequest.html
index 20b3f575..0636268d 100644
--- a/doc/external-XMLHttpRequest.html
+++ b/doc/external-XMLHttpRequest.html
@@ -51,7 +51,7 @@ XMLHttpRequest
diff --git a/doc/external-jQuery.html b/doc/external-jQuery.html
index 5b5eb4aa..5cc6304c 100644
--- a/doc/external-jQuery.html
+++ b/doc/external-jQuery.html
@@ -51,7 +51,7 @@ jQuery
diff --git a/doc/index.html b/doc/index.html
index 1b913ee0..4ec4f31b 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -9094,7 +9094,7 @@