aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/systemtags/systemtagscollection.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/src/systemtags/systemtagscollection.js b/core/src/systemtags/systemtagscollection.js
index 685eb65182a..b123ef30fe4 100644
--- a/core/src/systemtags/systemtagscollection.js
+++ b/core/src/systemtags/systemtagscollection.js
@@ -69,7 +69,7 @@
fetch: function(options) {
var self = this
options = options || {}
- if (this.fetched || options.force) {
+ if (this.fetched || this.working || options.force) {
// directly call handler
if (options.success) {
options.success(this, null, options)
@@ -79,10 +79,13 @@
return Promise.resolve()
}
+ this.working = true
+
var success = options.success
options = _.extend({}, options)
options.success = function() {
self.fetched = true
+ self.working = false
if (success) {
return success.apply(this, arguments)
}