common/corpus-common-addon/addon/components/doc-location.js
changeset 394 48458e099b05
parent 392 4fbe94af93e8
child 492 acecbffac2c4
--- a/common/corpus-common-addon/addon/components/doc-location.js	Sun Nov 06 03:44:16 2016 +0100
+++ b/common/corpus-common-addon/addon/components/doc-location.js	Tue Nov 08 01:22:56 2016 +0100
@@ -11,7 +11,9 @@
   _resolveGeonamesIds: Ember.on('init', Ember.observer('url', function () {
     this.get('geonamesResolver').getLabel(this.get('url'))
       .then(function (str) {
-        this.set('resolvedLabel', str);
+        if (!(this.get('isDestroyed') || this.get('isDestroying'))) {
+          this.set('resolvedLabel', str);
+        }
       }.bind(this));
   })),