Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Provide a .destroy() method for the widget #6

Open
purtuga opened this issue Sep 27, 2014 · 0 comments
Open

Enhancement: Provide a .destroy() method for the widget #6

purtuga opened this issue Sep 27, 2014 · 0 comments

Comments

@purtuga
Copy link
Owner

purtuga commented Sep 27, 2014

Provide a way for the widget to be destroyed on a given element, in order to ensure that instances that were applied to dynamic viewports (ex. page Dialog widgets) can be removed by the callee explicitly.

Alternative?
As an alternative, also look into periodically run through the set of viewports and remove all bound instances if the viewport is not longer in DOM. This approach could be dangerous, since user could have detach() element from DOM temporarily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant