Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

AnimationComplete: change default to durationDefault fix duration read#7119

Closed
arschmitz wants to merge 1 commit intomasterfrom
animation-complete-fixes
Closed

AnimationComplete: change default to durationDefault fix duration read#7119
arschmitz wants to merge 1 commit intomasterfrom
animation-complete-fixes

Conversation

@arschmitz
Copy link
Contributor

Safegurard against NAN values and fix camelcase of duration name

Fixes gh-7114
Fixes gh-7118

Safegurard against NAN values and fix camelcase of duration name

Fixes gh-7114
Fixes gh-7118

Choose a reason for hiding this comment

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

... maybe add || isNaN( duration ) anyway, in case the duration-as-a-string was defined, but contained garbage ... ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i suppose an extra safeguard cant hurt

Choose a reason for hiding this comment

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

Actually, if you add this condition, you don't really need to check if duration is undefined before passing it into parseFloat(), because

parseFloat( undefined ) => NaN
parseFloat( "" ) => NaN

@gabrielschulhof
Copy link

The commit message should say it Fixes gh-7116 instead of gh-7118, which is my PR. IOW:

Safegurard against NAN values and fix camelcase of duration name

Fixes gh-7114
Fixes gh-7116

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.

jqm 1.4.1 Regression panel-external css transaction IOS

2 participants