common/corpus-common-addon/addon/components/doc-language.js
changeset 394 48458e099b05
parent 134 c06d08c8a1b8
child 429 4a0fc5c5f420
--- a/common/corpus-common-addon/addon/components/doc-language.js	Sun Nov 06 03:44:16 2016 +0100
+++ b/common/corpus-common-addon/addon/components/doc-language.js	Tue Nov 08 01:22:56 2016 +0100
@@ -10,7 +10,9 @@
 
     _resolveLexvoIds: Ember.on('init', Ember.observer('url', function() {
       this.get('lexvoResolver').getName(this.get('url')).then(function(str) {
+        if (!(this.get('isDestroyed') || this.get('isDestroying'))) {
           this.set('resolvedName', str);
+        }
       }.bind(this));
     })),