Browse Source

AMBARI-12577. FE: Switching from Service page to Hosts page and back leaks DOM nodes and listeners (akovalenko)

Aleksandr Kovalenko 10 years ago
parent
commit
15d1ada707
1 changed files with 4 additions and 0 deletions
  1. 4 0
      ambari-web/app/views/main/host.js

+ 4 - 0
ambari-web/app/views/main/host.js

@@ -538,6 +538,10 @@ App.MainHostView = App.TableView.extend(App.TableServerViewMixin, {
       App.tooltip(this.$("[rel='HealthTooltip'], [rel='UsageTooltip'], [rel='ComponentsTooltip']"));
     },
 
+    willDestroyElement: function() {
+      this.$("[rel='HealthTooltip'], [rel='UsageTooltip'], [rel='ComponentsTooltip']").remove();
+    },
+
     displayComponents: function () {
       if (this.get('hasNoComponents')) {
         return;