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

Stop binding or destructor #20

Closed
aldebaran798 opened this issue Jul 21, 2017 · 2 comments
Closed

Stop binding or destructor #20

aldebaran798 opened this issue Jul 21, 2017 · 2 comments

Comments

@aldebaran798
Copy link

Is possible once an element that is initialized with simpleScrollbar remove the scroll function or stop binding?

@buzinas
Copy link
Owner

buzinas commented Nov 10, 2017

Not at this point. I'll be glad to accept a PR for this.

taltmann42 added a commit to taltmann42/simple-scrollbar that referenced this issue Jun 10, 2018
Two new methods where added in order to remove SimpleScrollbar

`SimpleScrollbar.unbind(el)` destroys one specific instance including all event listeners and wrapping elements.

`SimpleScrollbar.unbindAll()` destroys all instances using the `unbind` method

A demo page can be found here: https://codepen.io/taltmann42/full/qKRLzv/
taltmann42 added a commit to taltmann42/simple-scrollbar that referenced this issue Jun 10, 2018
Two new methods where added in order to remove SimpleScrollbar

`SimpleScrollbar.unbind(el)` destroys one specific instance including all event listeners and wrapping elements.

`SimpleScrollbar.unbindAll()` destroys all instances using the `unbind` method

A demo page can be found here: https://codepen.io/taltmann42/full/qKRLzv/
buzinas pushed a commit that referenced this issue Jun 18, 2020
Two new methods where added in order to remove SimpleScrollbar

`SimpleScrollbar.unbind(el)` destroys one specific instance including all event listeners and wrapping elements.

`SimpleScrollbar.unbindAll()` destroys all instances using the `unbind` method

A demo page can be found here: https://codepen.io/taltmann42/full/qKRLzv/
@buzinas
Copy link
Owner

buzinas commented Jun 18, 2020

This was fixed by #44.

@buzinas buzinas closed this as completed Jun 18, 2020
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

2 participants