On Jul 9, 2007, at 3:05 PM, Matt Kruse wrote:
On Jul 9, 1:50 pm, "Sean Catchpole" <[EMAIL PROTECTED]> wrote:
I believe that learning jquery returns an array like object is more
useful than creating a .exists() function.
IMO, many people look for "common sense" methods that should exist in
jQuery, or at least as part of a standard and commonly-used plugin. An
exists() method seems like a reasonable candidate.
As another example, I think .hasClass() should exist, even though you
can do .is(".className") - simply because most people will look for a
method called "hasClass" rather than reading the docs and eventually
finding that .is() is the correct way to do it. It makes jQuery a
little more approachable and user-friendly if it has exactly what
you're looking for and expect, even though it may just be a wrapper
for the real underlying functionality.
I was pleased when jQuery got rid of all the pointless helper
functions for CSS and simply went to name and value pairs for a css
function. (IIRC).
--
Alan Gutierrez | [EMAIL PROTECTED] | http://blogometer.com/ | 504
717 1428
Think New Orleans | http://thinknola.com/