From ca6b7d0fa2e355ebd764230260758cee9a4ebe1e Mon Sep 17 00:00:00 2001 From: Matias Niemelä Date: Wed, 22 Jan 2014 12:38:26 -0500 Subject: feat($animate): provide support for a close callback Closes #5685 Closes #5053 Closes #4993 --- src/ngAnimate/animate.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/ngAnimate') diff --git a/src/ngAnimate/animate.js b/src/ngAnimate/animate.js index bf5e3af4..b1ea7d3d 100644 --- a/src/ngAnimate/animate.js +++ b/src/ngAnimate/animate.js @@ -828,7 +828,10 @@ angular.module('ngAnimate', ['ng']) } function fireDoneCallbackAsync() { - doneCallback && async(doneCallback); + async(function() { + fireDOMCallback('close'); + doneCallback && doneCallback(); + }); } //it is less complicated to use a flag than managing and cancelling -- cgit v1.2.3