In 1.6rc5, _trigger creates a custom event with the name
this.widgetEventPrefix + type
Is there a reason it's not
type + '.' + this.widgetEventPrefix
to use namespaced events (
http://docs.jquery.com/Namespaced_Events)?
That would be consistent with the purpose of namespaced events, and
would allow destroy (or the user) to do
this.element.unbind('.'+this.widgetEventPrefix) to clean up any
leftover event handlers.
This would also be consistent with the actual UI widgets, all of which
use things like unbind('.sortable') and
.bind("mouseleave.accordion").
To be completely consistent, the widget constructor should also use
.bind('setData.' + this.widgetEventPrefix) rather than .bind
('setData.' + name)
but I don't think anyone uses widgetEventPrefix anyway. Just drop it!
Danny