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

Collapse - Allow to pass jQuery object or DOM element to the parent option #24083

Merged
merged 1 commit into from
Sep 25, 2017

Conversation

Johann-S
Copy link
Member

Allow to pass jQuery object or DOM element to the parent option

Close : #24073

parent = this._config.parent

// it's a jQuery object
if (typeof this._config.parent.jquery !== 'undefined') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe

typeof this._config.parent.jquery !== 'undefined'

->

this._config.parent instanceof jQuery

?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep works too 👍

Copy link
Member

@XhmikosR XhmikosR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM since Browser tests pass.

@Johann-S Johann-S merged commit 9b8356b into v4-dev Sep 25, 2017
@Johann-S Johann-S deleted the v4-collapse-parent branch September 25, 2017 11:23
@mdo mdo mentioned this pull request Sep 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants