I don't think it is possible. No matter how you turn it around, you'll lose
the object context.
I suppose your myNamespace() function is something like:
$.fn.myNamespace = function() {
return this;
}
right?
2009/3/28 iceman2g <[email protected]>
>
> I asked this elsewhere and it was suggested that I ask here.
>
> So here goes
>
> I was curious if it's possible to extend jquery to do something along
> the
> lines of "$('div ul').myNamespace.myMethod();"?
>
> So far the closet I've seen anyone come to this, is along the lines of
> "$('div ul').myNamespace().myMethod();".
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" 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-dev?hl=en
-~----------~----~----~----~------~----~------~--~---