aboutsummaryrefslogtreecommitdiffstats
path: root/src/ngAnimate/animate.js
diff options
context:
space:
mode:
authorMatias Niemelä2014-01-22 12:38:26 -0500
committerMatias Niemelä2014-01-24 12:21:29 -0500
commitca6b7d0fa2e355ebd764230260758cee9a4ebe1e (patch)
tree98992bed78ed529da0617fd94c0d1f1573ff7078 /src/ngAnimate/animate.js
parent40dc806e03b81cf8bdbb24d67c8e8e3c8af42324 (diff)
downloadangular.js-ca6b7d0fa2e355ebd764230260758cee9a4ebe1e.tar.bz2
feat($animate): provide support for a close callback
Closes #5685 Closes #5053 Closes #4993
Diffstat (limited to 'src/ngAnimate/animate.js')
-rw-r--r--src/ngAnimate/animate.js5
1 files changed, 4 insertions, 1 deletions
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