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

Guard against this.drop not existing #153

Closed
wants to merge 1 commit into from

Conversation

minichate
Copy link

If the element gets destroyed before the handlers get removed there are exceptions thrown complaining about el.classList. This is because destroy() sets this.drop to null.

A null-guard should protect against this case.

@minichate minichate force-pushed the guard-drop-not-exists branch from 33b23b5 to e9e0510 Compare October 11, 2016 18:38
If the element gets destroyed before the handlers get removed there are
exeptions thrown complaining about `el.classList`. This is because
`destroy()` sets `this.drop` to `null`.

A null-guard should protect against this case.
@minichate minichate force-pushed the guard-drop-not-exists branch from e9e0510 to 24023af Compare October 11, 2016 20:07
@megasmack
Copy link

Wondering what the status of this pull request is? This looks like it would solve some problems we're currently having with Drop.

@minichate
Copy link
Author

@megasmack Looks to me like HubSpot isn't actively maintaining this repo anymore. We're just installing this from my fork at https://github.com/minichate/drop instead :(

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

Successfully merging this pull request may close these issues.

2 participants