We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This listeners can not be removed.
this.target.addEventListener('touchstart', this.recordTouchStartValues.bind(this)); this.target.addEventListener('touchend', this.detectSwipeDirection.bind(this));
Because this.recordTouchStartValues.bind(this) !== this.recordTouchStartValues.bind(this) (the pointer is new every time bind is called).
this.recordTouchStartValues.bind(this) !== this.recordTouchStartValues.bind(this)
So the function disable() will not remove the listeners.
disable()
Please store this.xxx.bind(this) in variables and add and remove listeners with the same variables.
this.xxx.bind(this)
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
This listeners can not be removed.
Because
this.recordTouchStartValues.bind(this) !== this.recordTouchStartValues.bind(this)
(the pointer is new every time bind is called).So the function
disable()
will not remove the listeners.Please store
this.xxx.bind(this)
in variables and add and remove listeners with the same variables.The text was updated successfully, but these errors were encountered: