]> source.dussan.org Git - sonarqube.git/commitdiff
do not render issues for already destroyed source viewer
authorStas Vilchik <vilchiks@gmail.com>
Thu, 7 Apr 2016 10:05:04 +0000 (12:05 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 7 Apr 2016 11:33:29 +0000 (13:33 +0200)
server/sonar-web/src/main/js/components/source-viewer/main.js

index 0eb02489056ecabb525b646b5daed8f82734de15..24e817c104bdb5c793608de5e2010b97730c4d89 100644 (file)
@@ -124,8 +124,10 @@ export default Marionette.LayoutView.extend({
     const opts = typeof options === 'object' ? options : {};
     const finalize = function () {
       that.requestIssues().done(function () {
-        that.render();
-        that.trigger('loaded');
+        if (!that.isDestroyed) {
+          that.render();
+          that.trigger('loaded');
+        }
       });
     };
     _.extend(this.options, _.defaults(opts, { workspace: false }));