jQWidgets Forums

jQuery UI Widgets Forums Editors Editor Leak on destroy

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 10 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Leak on destroy #71981

    celeona
    Participant

    When the jqxEditor ‘destroy’ method is called it is not completely removed from memory. The issue appears to be with the resize utilities timer.

    It is easiest to see by creating the editor, then destroying it, then re-creating it again. The sizing will be off when re-created.

    Placing some breakpoints in the script, I can see where a timer is firing to try and resize the widget even after it has been destroyed.

    I also use jqxGrid which does not exhibit this behaviour. It appears that upon destroy the grid calls the resize utility to unregister itself, the editor is missing this call.

    This is using jqWidgets 3.7.1, also had the same issue in 3.6.0.

    Leak on destroy #71998

    Peter Stoev
    Keymaster

    All resources i.e HTML Elements, Event Handlers, etc are removed on Destroy in the current version of the widgets which is 3.8. We will test again and if we find some issue, we will add work item and resolve it in future release.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.