Re: [jquery-dev] one document one jQuery instance

2009-12-21 Thread John Resig
> $() > $("html") > $( document ) All three of those things point to different things so it doesn't make sense to have it be a "singleton". The first gives you an empty set, the second is a set containing the document element, the third is a set containing the document. The only case we could (p

[jquery-dev] one document one jQuery instance

2009-12-21 Thread DBJDBJ
What would happen if jQuery would "force" a "singleton" for a host document ? What if : $() $("html") $( document ) ... etc Would all point to the same jQuery instance ? One document one jQuery. Do we already have it in core.js : // A central reference to the root jQuery(document) rootj