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

Commit ebb5e18

Browse files
committed
fix(tooltip): clean up stackedMap on scope destroy
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
1 parent feb689c commit ebb5e18

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tooltip/tooltip.js

+1
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ angular.module('ui.bootstrap.tooltip', ['ui.bootstrap.position', 'ui.bootstrap.s
486486
$timeout.cancel(positionTimeout);
487487
unregisterTriggers();
488488
removeTooltip();
489+
openedTooltips.remove(ttScope);
489490
ttScope = null;
490491
});
491492
};

0 commit comments

Comments
 (0)