It would be good if there was a better way to handle intialising / reinitialising javascript plugins on the widgets admin.
If you have, say, a jquery plugin on an input on a widget, the plugin will be deactivated on save and when a widget is dragged in. So you need to initialise the javascript 3 times: On page load, on save, and on drag.
This gets pretty hairy when you have to identify which widget it is, and discriminate between each widget. It would be ace if there were hooks for each of these states. And these could get passed the current widget's id as an argument so you could target the javascript to the widget in question without loads of DOM traversing for easier development.