aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2017-10-02 14:14:07 +0200
committerXhmikosR <[email protected]>2019-02-20 22:05:45 +0200
commit2929bf9619fd0517a9bee0f4b9a753f9513d75dc (patch)
tree0551038bed4c6f630eeb16216bca72c4df2debf4 /js/src
parentcc6e130fc1c6f794fcdb24737cb584ac2c937d33 (diff)
downloadbootstrap-2929bf9619fd0517a9bee0f4b9a753f9513d75dc.tar.xz
bootstrap-2929bf9619fd0517a9bee0f4b9a753f9513d75dc.zip
fix weird case with jQuery
Diffstat (limited to 'js/src')
-rw-r--r--js/src/collapse.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/collapse.js b/js/src/collapse.js
index 9c7ff9277..9da673cc9 100644
--- a/js/src/collapse.js
+++ b/js/src/collapse.js
@@ -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 {