Commit 2929bf96 authored by Johann-S's avatar Johann-S Committed by XhmikosR
Browse files

fix weird case with jQuery

parent cc6e130f
Showing with 2 additions and 2 deletions
+2 -2
...@@ -289,8 +289,8 @@ class Collapse { ...@@ -289,8 +289,8 @@ class Collapse {
if (Util.isElement(this._config.parent)) { if (Util.isElement(this._config.parent)) {
parent = this._config.parent parent = this._config.parent
// It's a jQuery object // it's a jQuery object
if (typeof this._config.parent.jquery !== 'undefined') { if (typeof this._config.parent.jquery !== 'undefined' || typeof this._config.parent[0] !== 'undefined') {
parent = this._config.parent[0] parent = this._config.parent[0]
} }
} else { } else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment