On Thu, Sep 17, 2009 at 7:04 PM, Nico <nicolas.deve...@gmail.com> wrote:

>
> Would it be possible to add something so we could get a true with this
> example :
>
> $([]).constructor === jQuery
>
>
if you rely in such example, your solution is then:

if($([]) instanceof jQuery){
    // jQuery stuff
}

which is true as long as you don't pass jQuery or its objects between
sandboxes.
Also is much more reliable than o.jquery ... since everytbody can add a
jquery property, "nobody" can change instanceof operator

Regards

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to