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:
authorMark Otto <markdotto@gmail.com>2017-09-13 08:24:15 +0300
committerMark Otto <markdotto@gmail.com>2017-09-13 08:24:15 +0300
commit75d435f76e48b19007495a02e79b0d41f2690361 (patch)
tree56fd67d5a60a1fe5442c969d29918db4f463b827 /js/dist/collapse.js
parent5becfa6fb1c04b57020737d7c352404e72766a0a (diff)
dist
Diffstat (limited to 'js/dist/collapse.js')
-rw-r--r--js/dist/collapse.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/dist/collapse.js b/js/dist/collapse.js
index de1ea2e7bb..0293f24c8b 100644
--- a/js/dist/collapse.js
+++ b/js/dist/collapse.js
@@ -62,14 +62,14 @@ var Collapse = function () {
var Selector = {
ACTIVES: '.show, .collapsing',
DATA_TOGGLE: '[data-toggle="collapse"]'
- };
- /**
- * ------------------------------------------------------------------------
- * Class Definition
- * ------------------------------------------------------------------------
- */
+ /**
+ * ------------------------------------------------------------------------
+ * Class Definition
+ * ------------------------------------------------------------------------
+ */
+ };
var Collapse = function () {
function Collapse(element, config) {
_classCallCheck(this, Collapse);
@@ -353,7 +353,7 @@ var Collapse = function () {
$(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
// preventDefault only for <a> elements (which change the URL) not inside the collapsible element
- if (event.target.tagName === 'A' && !$.contains(this, event.target)) {
+ if (event.currentTarget.tagName === 'A') {
event.preventDefault();
}