Namespaced constructors?

Namespaced constructors?


John,
Did you think about this as well; for instance, the menu widget has a
few functions it can do:
$().menu();
$().contextMenu()
$().toolbar();
$().menuRibbon();
(last 2 are just my imaginations)
but.. How do we know if the constructors don't overwrite other
constructors?
Is it an idea to do something like this, or does that require a change
of the jQuery core, to support namespace constructors?
$().ui.menu(...);
$().ui.upload(...);
$().ui.tree(...);
This way, we are sure that it belongs to UI, what do you think?