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

fix(modal): backdrop animation on AngularJS 1.4 #3899

Merged

Conversation

chrisirhc
Copy link
Contributor

Fixes #3896

@@ -142,6 +142,7 @@ describe('$modal', function () {
function open(modalOptions) {
var modal = $modal.open(modalOptions);
$rootScope.$digest();
$timeout.flush(0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the 0 need to be passed in?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a test that has a $timeout resolve , this prevents flushing that timeout (all timers are flushed when no args are given) so that that test is successful.

This really is supposed to just run the next tick, it's only for resolving the newly added $q promises, since there weren't any $timeout timers added.

@wesleycho
Copy link
Contributor

Hm, I think a comment explaining the behavior would be good - otherwise, this LGTM.

@chrisirhc chrisirhc force-pushed the feature/fix-backdrop-animate branch 2 times, most recently from f7ed003 to b2b709f Compare July 6, 2015 07:19
@chrisirhc
Copy link
Contributor Author

Added a comment and updated the variable names to hopefully clarify things.

@chrisirhc chrisirhc force-pushed the feature/fix-backdrop-animate branch from b2b709f to 158d267 Compare July 6, 2015 07:22
@wesleycho
Copy link
Contributor

Looks good here

@chrisirhc chrisirhc merged commit 158d267 into angular-ui:master Jul 6, 2015
@chrisirhc chrisirhc deleted the feature/fix-backdrop-animate branch July 6, 2015 07:26
@diwu1989
Copy link

diwu1989 commented Jul 8, 2015

This is really important for us, can you make a 0.13.1 release soon with this included?

@LunarDevelopment
Copy link

👍
this needs released asap, to bower preferably!

@sagar-ranglani
Copy link

Any updates about the release?

@Xal3ph
Copy link

Xal3ph commented Jul 17, 2015

When I built 13.1 based on 158d267 it fixed the problems I was experiencing. Thank you! Looking forward to the official release 🍻

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants