In "learning Jquery Third Edition" I found these lines:
Destroying widgets.... Calling .myWidget('destroy') will remove the myWidget widget from the page. The widget factory does most of the work, but if we have modified parts of the document inside _create (as we did here);so we need to clean up after ourselves.
However, when creating a new widget and I can't imagine a situation in which we don't modify _create function. Could you give me an example of doing so.