Update preparetransition.js #4

Merged
merged 1 commit into from Oct 16, 2012
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Diff settings

Always

Just for now

View
@@ -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