Hello javinavarrete63,
Unfortunately, there is no such option.
initwidget is a callback function and does not create memory leak. Memory leak may happen if your logic inside initwidget does something which occupies memory and does not destroy it. For example: bind to event. As initwidget is called each time the widget is in the view, you will end up with many event listeners while you need only 1. If possible, you can try moving your initwidget
callback functionality into the createwidget
callback that is called only once.
Best Regards,
Martin Yotov
jQWidgets team
https://www.jqwidgets.com