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

fix($animate): ensure that a timeStamp is created if not provided by the browser event #4387

Closed
wants to merge 1 commit into from

Conversation

matsko
Copy link
Contributor

@matsko matsko commented Oct 12, 2013

Firefox and (sometimes) Opera may not provide a timeStamp value in their event when passed
to the event handler. This may cause animations not to close properly. This fix will automatically
create a timeStamp value for the event in this situation when missing.

Broken example (use firefox):
http://plnkr.co/edit/jDbt7gJqxe0Y4G5hnogu?p=preview

Working example (use firefox)
http://plnkr.co/edit/06IKn2WWq0ttvhAdf2Iq?p=preview

Closes #3053

@mary-poppins
Copy link

Thanks for the PR!

  • Contributor signed CLA now or in the past
    • If you just signed, leave a comment here with your real name
  • PR's commit messages follow the commit message format

If you need to make changes to your pull request, you can update the commit with git commit --amend.
Then, update the pull request with git push -f.

Thanks again for your help!

…the browser event

Firefox and (sometimes) Opera may not provide a timeStamp value in their event when passed
to the event handler. This may cause animations not to close properly. This fix will automatically
create a timeStamp value for the event in this situation when missing.

Closes angular#3053
@petebacondarwin
Copy link
Member

LGTM

@IgorMinar
Copy link
Contributor

lgtm

@matsko
Copy link
Contributor Author

matsko commented Oct 12, 2013

MERGED

@matsko matsko closed this Oct 12, 2013
@matsko
Copy link
Contributor Author

matsko commented Oct 12, 2013

Landed as cd216c4

@matsko matsko deleted the missing_timestamp_fix branch October 12, 2013 23:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ngAnimate not working properly on Firefox 21 (Latest Stable)
4 participants