aboutsummaryrefslogtreecommitdiff
path: root/js/collapse.js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2014-06-08 11:19:35 -0700
committerMark Otto <[email protected]>2014-06-08 11:19:35 -0700
commit34891de173f1ea1dfd470d4cdeed52f83d9a253b (patch)
treea7cb7aaf85bdfce5e1f0a8165879193c327179b6 /js/collapse.js
parentd66b65ddde1b2f1a5cb14f601d30c552c79d7626 (diff)
parent1e3b93804fa88d247d8708529fb44b28d73fd91f (diff)
downloadbootstrap-34891de173f1ea1dfd470d4cdeed52f83d9a253b.tar.xz
bootstrap-34891de173f1ea1dfd470d4cdeed52f83d9a253b.zip
grunt
Diffstat (limited to 'js/collapse.js')
-rw-r--r--js/collapse.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/collapse.js b/js/collapse.js
index 8d6e33289..87098dbd2 100644
--- a/js/collapse.js
+++ b/js/collapse.js
@@ -159,7 +159,8 @@
// =================
$(document).on('click.bs.collapse.data-api', '[data-toggle="collapse"]', function (e) {
- var $this = $(this), href
+ var href
+ var $this = $(this)
var target = $this.attr('data-target')
|| e.preventDefault()
|| (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7