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

Commit

Permalink
fix(modal): properly garbage collect DOM node
Browse files Browse the repository at this point in the history
- Garbage collect using `$animate` so that `$animate` releases reference to DOM node

Fixes #2875
  • Loading branch information
wesleycho committed Aug 2, 2015
1 parent 647cdd9 commit 1e8297b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modal/modal.js
Expand Up @@ -279,7 +279,7 @@ angular.module('ui.bootstrap.modal', [])
}
afterAnimating.done = true;

domEl.remove();
$animate.leave(domEl);
scope.$destroy();
if (done) {
done();
Expand Down

0 comments on commit 1e8297b

Please sign in to comment.