mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-30 22:52:24 +01:00
fix weird case with jQuery
This commit is contained in:
parent
cc6e130fc1
commit
2929bf9619
@ -289,8 +289,8 @@ class Collapse {
|
|||||||
if (Util.isElement(this._config.parent)) {
|
if (Util.isElement(this._config.parent)) {
|
||||||
parent = this._config.parent
|
parent = this._config.parent
|
||||||
|
|
||||||
// It's a jQuery object
|
// it's a jQuery object
|
||||||
if (typeof this._config.parent.jquery !== 'undefined') {
|
if (typeof this._config.parent.jquery !== 'undefined' || typeof this._config.parent[0] !== 'undefined') {
|
||||||
parent = this._config.parent[0]
|
parent = this._config.parent[0]
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user