[jQuery] detecting jQuery objects && "constructor" property
Hi,
When I create a jQuery Object, it's known by javascript as an object,
and it behaves like a function.
In some cases, I have to check if a variable is a jQuery object or
not.
Usually, to check a variable type, I use the "constructor" property
(when I can't use typeof, which is not accurate).
In case of jQuery, the constructor property equals Object, so I can't
is it.
Would it be possible to change this, so I could get for example :
$([]).constructor === jQuery
This would be great, no ??