Skip to content

Commit

Permalink
Wow, Uglify.js is stupid.
Browse files Browse the repository at this point in the history
  • Loading branch information
shalecraig committed Oct 25, 2012
1 parent 6c64710 commit 0c3d73e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/fx.js
Expand Up @@ -48,11 +48,10 @@
$.fn.animate = function(properties, duration, ease, callback){
if ($.isObject(duration))
ease = duration.easing, callback = duration.complete, duration = duration.duration

if (duration && typeof duration != 'number')
duration = ($.fx.speeds[duration] || $.fx.speeds._default)
if (duration)
if (typeof duration == 'number')
duration = duration
else
duration = ($.fx.speeds[duration] || $.fx.speeds._default)
duration /= 1000
return this.anim(properties, duration, ease, callback)
}
Expand Down

0 comments on commit 0c3d73e

Please sign in to comment.