Skip to content

Commit

Permalink
Merge pull request Bottelet#150 from vitorfleite/patch-1
Browse files Browse the repository at this point in the history
Collapse Plugin update
  • Loading branch information
Bottelet authored Jul 8, 2020
2 parents 6f495a6 + 3279c67 commit 1b4772e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/js/vendor.js
Original file line number Diff line number Diff line change
Expand Up @@ -728,8 +728,8 @@ if (typeof jQuery === 'undefined') {
var $this = $(this)
var data = $this.data('bs.collapse')
var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option)

if (!data && options.toggle && /show|hide/.test(option)) options.toggle = false
if (!data && options.toggle && /show|hide/.test(options)) options.toggle = false
if (!data) $this.data('bs.collapse', (data = new Collapse(this, options)))
if (typeof option == 'string') data[option]()
})
Expand Down Expand Up @@ -2603,4 +2603,4 @@ module.exports = __webpack_require__(/*! bootstrap-sass */"./node_modules/bootst

/***/ })

}]);
}]);

0 comments on commit 1b4772e

Please sign in to comment.