Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
fix(tooltip): clean up stackedMap on scope destroy
Browse files Browse the repository at this point in the history
The tooltip was not being removed from the stackedMap
resulting in a memeory leak.  Tooltip will now be
removed from the stackedMap in scope destroy
function.

Closes #4610

Fixes #4604
  • Loading branch information
RobJacobs committed Oct 13, 2015
1 parent feb689c commit ebb5e18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tooltip/tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position', 'ui.bootstrap.s
$timeout.cancel(positionTimeout);
unregisterTriggers();
removeTooltip();
openedTooltips.remove(ttScope);
ttScope = null;
});
};
Expand Down

0 comments on commit ebb5e18

Please sign in to comment.