You should create modules for your custom Widgets rather than create them inline in a use() callback. YUI3's module structure is best used by isolating
... That was the idea :). ... I think a plugin is the right place to start - something which can be added to an instance of any widget, if it's content