If you're asking if it's possible to change every single use of jQuery
inside all jQuery UI plugins to override the context, the answer is
no.
You may be able to just override the jQuery function though:
jQuery = function(selector, context) {
return new jQuery.fn.init(selector, context || example.doc);
}
Not sure if that will work properly or not.
On Apr 6, 3:07 pm, martinfcasey <[email protected]> wrote:
> hi!
>
> i posted yesterday, and have looked a bit further, perhaps i can be
> more clear today.
>
> i'd like to specify the context in which jquery-ui will live. for
> example, i can init jquery:
>
> new jQuery.fn.init (selector,context||example.doc);
>
> where example.doc is the page (document).
>
> this is important, because i'm calling jquery from a firefox
> extension, such that the browser.xul file would be the default
> document, otherwise.
>
> is there any way to do this in jquery-ui, or has anyone successfully
> done something like this, either embedding jquery-ui in a firefox
> extension or for some other reason overriding the default document?
>
> thanks!
>
> - martin.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---