0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-28 20:52:21 +01:00

fix weird case with jQuery

This commit is contained in:
Johann-S 2017-10-02 14:14:07 +02:00 committed by XhmikosR
parent cc6e130fc1
commit 2929bf9619

View File

@ -289,8 +289,8 @@ class Collapse {
if (Util.isElement(this._config.parent)) {
parent = this._config.parent
// It's a jQuery object
if (typeof this._config.parent.jquery !== 'undefined') {
// it's a jQuery object
if (typeof this._config.parent.jquery !== 'undefined' || typeof this._config.parent[0] !== 'undefined') {
parent = this._config.parent[0]
}
} else {