Skip to content

Allow standalone .detach function to accept same arbitrary elements as ResizeSensor class #107

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

Merged
merged 1 commit into from
May 13, 2016

Conversation

jsdw
Copy link
Contributor

@jsdw jsdw commented May 13, 2016

factor out iterating over single or multi elements and reuse in stand alone .detach function as well.

Previously, you could pass a single or multiple elements to the ResizeSensor class and it would handle that, but ResizeSensor.detach could only handle single elements. This change factors out the code used to handle single or multiple elems and reuses it in ResizeSensor.detach as well for improved consistency

@marcj marcj merged commit 788b1b2 into marcj:master May 13, 2016
@marcj
Copy link
Owner

marcj commented May 13, 2016

LGTM, thanks! :)

@jsdw
Copy link
Contributor Author

jsdw commented May 13, 2016

No worries, thanks for a super useful piece of code :)

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