Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit c70688f

Browse files
committedNov 15, 2014
fix($animate): applyStyles from options on leave
missing <code>[options]</code> API that should either be removed from the docs or added in the code @param {object=} options an optional collection of options that will be applied to the element. the tests weren't working for this feature ```javascript $animate.leave(element, 'off', { to: { color: 'blue' } }); assertColor('blue'); //nothing should happen the element is gone anyway ``` you can view the docs here https://ng-click.com/$animate#leave
1 parent 5b23bc9 commit c70688f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/ng/animate.js

+1
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ var $AnimateProvider = ['$provide', function($provide) {
210210
* @return {Promise} the animation callback promise
211211
*/
212212
leave: function(element, options) {
213+
applyStyles(element, options);
213214
element.remove();
214215
return asyncPromise();
215216
},

0 commit comments

Comments
 (0)