瀏覽代碼

AMBARI-2635. Perf: Service summary view inefficiently binds to host components. (srimanth)

Srimanth Gunturi 12 年之前
父節點
當前提交
e0435fafe1
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      ambari-web/app/views/main/service/info/summary.js

+ 3 - 1
ambari-web/app/views/main/service/info/summary.js

@@ -236,7 +236,9 @@ App.MainServiceInfoSummaryView = Em.View.extend({
           components.push(obj);
           components.push(obj);
         }
         }
       });
       });
-      this.set('components', components);
+      if(!this.get('isDestroyed') && !this.get('isDestroying')){
+        this.set('components', components);
+      }
   },
   },
   
   
   _hostComponentsUpd: function() {
   _hostComponentsUpd: function() {