Issue with widget on clone
I have a custom widget built on jquery UI that I am running into an
odd issue with. Everything works as I want on initial use, but when I
do a clone(true) on the widget and append it to another element, the
cloned version does not seem to have a proper handle on where it lives
in the dom - it returns the old id upon calling this.element.get
(0).id. Do I need to do something, maybe call some method, to update
this information w/in the widget, or is this only ever set upon
initial creation? I did try calling $('#myItem').myWidget('init'),
but no dice. Any thoughts? Something obvious I am missing?