Auto destroy of widget when removed
Hi, all
I am porting my code in jquery ui 1.7 to 1.8.2 and there seem to be a change in the way widgets are destroyed. They used to be "automatically" destroyed when I called .remove() on the element that my widget was build upon.
when i look in the code of 1.7 i can see that widgets are register themselves to the "remove" event (on widget prototype jquery-ui-1.7.2.custom.js line 281). On the new 1.8.2 API the widget is registering itself on a custom even called "remove." + this.widgetName but this event does not seem to be triggered when I call remove like i used to.
Am I doing something wrong? should I be the one to trigger that event manually in the control I am writing ?
Thanks in advance
Eyal Kobrigo.