ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akovale...@apache.org
Subject ambari git commit: AMBARI-12577. FE: Switching from Service page to Hosts page and back leaks DOM nodes and listeners (akovalenko)
Date Wed, 29 Jul 2015 14:57:08 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 8ad64e343 -> 78a32a46f


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


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

Branch: refs/heads/branch-2.1
Commit: 78a32a46f43a601d2c39131ef7881327165677f2
Parents: 8ad64e3
Author: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Authored: Wed Jul 29 17:56:53 2015 +0300
Committer: Aleksandr Kovalenko <akovalenko@hortonworks.com>
Committed: Wed Jul 29 17:56:53 2015 +0300

----------------------------------------------------------------------
 ambari-web/app/views/main/host.js | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/78a32a46/ambari-web/app/views/main/host.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/main/host.js b/ambari-web/app/views/main/host.js
index b204985..6ab3d22 100644
--- a/ambari-web/app/views/main/host.js
+++ b/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;


Mime
View raw message