mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-04-08 15:00:59 +00:00
fix weird case with jQuery
This commit is contained in:
parent
cc6e130fc1
commit
2929bf9619
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue