@onehat/data 1.6.12 → 1.6.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/Repository/Ajax.js +6 -0
package/package.json
CHANGED
package/src/Repository/Ajax.js
CHANGED
|
@@ -377,6 +377,12 @@ class AjaxRepository extends Repository {
|
|
|
377
377
|
if (this.debugMode) {
|
|
378
378
|
console.log('load result ' + this.name, result);
|
|
379
379
|
}
|
|
380
|
+
|
|
381
|
+
if (this.isDestroyed) {
|
|
382
|
+
// If this repository gets destroyed before it has a chance
|
|
383
|
+
// to process the Ajax request, just ignore the response.
|
|
384
|
+
return;
|
|
385
|
+
}
|
|
380
386
|
|
|
381
387
|
const {
|
|
382
388
|
root,
|