From: Johann-S Date: Mon, 2 Oct 2017 12:14:07 +0000 (+0200) Subject: fix weird case with jQuery X-Git-Tag: v5.0.0-alpha1~1317 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2929bf9619fd0517a9bee0f4b9a753f9513d75dc;p=thirdparty%2Fbootstrap.git fix weird case with jQuery --- 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 {