Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Update preparetransition.js #4

Merged
merged 1 commit into from

2 participants

@WebReflection

as soon as duration is defined avoid other parseFloat operations

@WebReflection WebReflection Update preparetransition.js
as soon as duration is defined avoid other parseFloat operations
3e54a67
@snookca snookca merged commit d34f284 into snookca:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 15, 2012
  1. @WebReflection

    Update preparetransition.js

    WebReflection authored
    as soon as duration is defined avoid other parseFloat operations
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  preparetransition.js
View
2  preparetransition.js
@@ -30,7 +30,7 @@ $.fn.prepareTransition = function(){
var cl = ["transition-duration", "-moz-transition-duration", "-webkit-transition-duration", "-o-transition-duration", "-ms-transition-duration"];
var duration = 0;
$.each(cl, function(idx, itm){
- duration = parseFloat( el.css( itm ) ) || duration;
+ duration || (duration = parseFloat( el.css( itm ) ));
});
// if I have a duration then add the class
Something went wrong with that request. Please try again.