common/corpus-common-addon/addon/components/doc-subject.js
changeset 394 48458e099b05
parent 134 c06d08c8a1b8
child 447 38d5789e30d0
--- a/common/corpus-common-addon/addon/components/doc-subject.js	Sun Nov 06 03:44:16 2016 +0100
+++ b/common/corpus-common-addon/addon/components/doc-subject.js	Tue Nov 08 01:22:56 2016 +0100
@@ -10,7 +10,9 @@
 
     _resolveBnfIds: Ember.on('init', Ember.observer('url', function() {
       this.get('bnfResolver').getLabel(this.get('url')).then(function(str) {
+        if (!(this.get('isDestroyed') || this.get('isDestroying'))) {
           this.set('resolvedLabel', str);
+        }
       }.bind(this));
     })),