Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann-S <johann.servoire@gmail.com>2017-10-02 15:14:07 +0300
committerXhmikosR <xhmikosr@gmail.com>2019-02-20 23:05:45 +0300
commit2929bf9619fd0517a9bee0f4b9a753f9513d75dc (patch)
tree0551038bed4c6f630eeb16216bca72c4df2debf4 /js/src/collapse.js
parentcc6e130fc1c6f794fcdb24737cb584ac2c937d33 (diff)
fix weird case with jQuery
Diffstat (limited to 'js/src/collapse.js')
-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 9c7ff92776..9da673cc9f 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 {