I'm trying to grasp the concept of need for this check
What's a situation where you would wonder what it is? Are you not in
control of your own code or something?
On Jan 5, 3:53 pm, Andy Matthews amatth...@dealerskins.com wrote:
How can I test to see if something is a jQuery object, or a
This sort of thing can happen a lot if you're writing functions which
take multiple inputs, based on convenience. Being in control of your
code shouldn't be a fascist thing like you're describing, where
there's only one way in which everything can or should happen. Having
openness in parameters
('fast');
$obj.show('fast');
}
-Original Message-
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of MorningZ
Sent: Monday, January 05, 2009 2:57 PM
To: jQuery (English)
Subject: [jQuery] Re: Test if a variable is a jQuery object?
I'm trying to grasp
There're different ways:
obj instanceof jQuery
obj obj.constructor == jQuery
obj obj.jquery
And any other possible attribute sniffing, 'jquery' is obviously the
safest.
--
Ariel Flesler
http://flesler.blogspot.com
On Jan 5, 7:08 pm, Eric Garside gars...@gmail.com wrote:
This sort of thing
4 matches
Mail list logo