Re:JQuery 1.4.4 Released
by ElbertF on Friday November 12, 2010 @03:40AM
(#1896993)
An extra 30 bytes for a useful feature isn't much of a big deal if you ask me. Especially if it saves me adding a bunch of code to do the same thing.
[ Parent
| on HN ]
Bytes add up over time.
I don't know anything about this feature in particular, there may in fact be a great reason for including it in the core but I do agree that in principle, anything not core should be in a different module. Nice to haves are just that, no point making people download them if they are unlikely to be used.
That said, jQuery is still awesome.
The reason:
In an attempt to further unify the methodology across
our API, we’ve introduced a new method to Effects
called .fadeToggle(). We already have existing toggle
methods in our API for sliding (.slideToggle()) and
toggling classes (.toggleClass()) and it made sense for
us to extend the availability of a built in toggle to
fading effects as well.