diff options
| author | Johann-S <[email protected]> | 2017-10-02 14:14:07 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-02-20 22:05:45 +0200 |
| commit | 2929bf9619fd0517a9bee0f4b9a753f9513d75dc (patch) | |
| tree | 0551038bed4c6f630eeb16216bca72c4df2debf4 /js/src | |
| parent | cc6e130fc1c6f794fcdb24737cb584ac2c937d33 (diff) | |
| download | bootstrap-2929bf9619fd0517a9bee0f4b9a753f9513d75dc.tar.xz bootstrap-2929bf9619fd0517a9bee0f4b9a753f9513d75dc.zip | |
fix weird case with jQuery
Diffstat (limited to 'js/src')
| -rw-r--r-- | js/src/collapse.js | 4 |
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 { |
