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


Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/09b52944
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/09b52944
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/09b52944

Branch: refs/heads/branch-1.2.5
Commit: 09b5294455dc753f38b97894aea0c0e8a75b3ad9
Parents: a47f4f2
Author: Srimanth Gunturi <[email protected]>
Authored: Fri Jul 12 15:40:11 2013 -0700
Committer: Srimanth Gunturi <[email protected]>
Committed: Fri Jul 12 16:15:28 2013 -0700

----------------------------------------------------------------------
 ambari-web/app/views/main/service/info/summary.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/09b52944/ambari-web/app/views/main/service/info/summary.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/service/info/summary.js 
b/ambari-web/app/views/main/service/info/summary.js
index b0623fb..5cbe478 100644
--- a/ambari-web/app/views/main/service/info/summary.js
+++ b/ambari-web/app/views/main/service/info/summary.js
@@ -236,7 +236,9 @@ App.MainServiceInfoSummaryView = Em.View.extend({
           components.push(obj);
         }
       });
-      this.set('components', components);
+      if(!this.get('isDestroyed') && !this.get('isDestroying')){
+        this.set('components', components);
+      }
   },
   
   _hostComponentsUpd: function() {

Reply via email to