Repository: ambari Updated Branches: refs/heads/trunk 2c0f80878 -> 15d1ada70
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/15d1ada7 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/15d1ada7 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/15d1ada7 Branch: refs/heads/trunk Commit: 15d1ada7070e15c297f764be3e9cbac84b07f9b7 Parents: 2c0f808 Author: Aleksandr Kovalenko <[email protected]> Authored: Wed Jul 29 17:41:42 2015 +0300 Committer: Aleksandr Kovalenko <[email protected]> Committed: Wed Jul 29 17:41:42 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/15d1ada7/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;
