Skip to content

Conversation

scottgonzalez
Copy link
Member

Fixes http://bugs.jqueryui.com/ticket/10056

Original discussion in #1288


The following widgets have refresh() methods:

  • Accordion: Updated to avoid memory leak.
  • Menu: Uses event delegation, has no leak.
  • Selectmenu: Events are on the button, which is constant.
  • Slider: Supports dynamically changing handles, but always unbinds all handle events when rendering new handles.
  • Sortable: Doesn't use ._on(), so has no leak.
  • Tabs: Updated to avoid memory leak.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a need to assign this to this.panels? Curious because it wasn't done before.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, so that we can get the previous value during a refresh.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah! I get it now.

@tjvantoll
Copy link
Member

👍

scottgonzalez added a commit that referenced this pull request Aug 21, 2014
scottgonzalez added a commit that referenced this pull request Aug 21, 2014
@scottgonzalez scottgonzalez deleted the event-memory-leak branch October 7, 2014 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants