louisremi / jquery.transition.js

Upgrade jQuery's .animate() method to use CSS3 Transitions in modern browsers.
435 stars 81 forks source link

Error when $.animate with duration=0 #28

Open chenxiaoqino opened 11 years ago

chenxiaoqino commented 11 years ago

When calling with duration=0, e.g. $.animate({...},0,easing,callback), after loaded jquery.transition.js, the script throws an error. TypeError: Object #<$> has no method 'update'

I know a durationof zero shouldn't be passed to $.animate(), which unluckily do happen sometimes, and the original jQuery script will treat it properly. Please, apply a small (probably one-line) fix to avoid css-transition?

chenxiaoqino commented 11 years ago

This is a minor issue; I can't tag it though.