Allow speed of 0 in animate to be instant

Allow speed of 0 in animate to be instant


Hi
It would be really useful if $.fn.animate understood speed of 0 as
being instant (rather than null => default speed)
I currently use the following to achieve this :
$.fn.animate2 = function(css, speed, fn) {
if(speed === 0) {
this.css(css)
fn()
} else {
this.animate(css, speed, fn)
}
}
Does it make sense to roll this into jQuery proper ?
Jonah