aboutsummaryrefslogtreecommitdiff
path: root/dist/js/bootstrap.js
diff options
context:
space:
mode:
authorBootstrap's Grunt bot <[email protected]>2015-02-27 04:11:09 +0000
committerBootstrap's Grunt bot <[email protected]>2015-02-27 04:11:09 +0000
commitfb3610c3af5297045a6724e52ff236dd9bad0a9a (patch)
treee9797ef4e09abf4129378cdcb843d43c79be9985 /dist/js/bootstrap.js
parent1623280f591723e703bce1dd206a3610be35c2cf (diff)
downloadbootstrap-fb3610c3af5297045a6724e52ff236dd9bad0a9a.tar.xz
bootstrap-fb3610c3af5297045a6724e52ff236dd9bad0a9a.zip
automatic grunt dist
Diffstat (limited to 'dist/js/bootstrap.js')
-rw-r--r--dist/js/bootstrap.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js
index 65833d5e5..b0a8ec72b 100644
--- a/dist/js/bootstrap.js
+++ b/dist/js/bootstrap.js
@@ -544,7 +544,8 @@ if (typeof jQuery === 'undefined') {
var Collapse = function (element, options) {
this.$element = $(element)
this.options = $.extend({}, Collapse.DEFAULTS, options)
- this.$trigger = $(this.options.trigger).filter('[href="#' + element.id + '"], [data-target="#' + element.id + '"]')
+ this.$trigger = $('[data-toggle="collapse"][href="#' + element.id + '"],' +
+ '[data-toggle="collapse"][data-target="#' + element.id + '"]')
this.transitioning = null
if (this.options.parent) {
@@ -561,8 +562,7 @@ if (typeof jQuery === 'undefined') {
Collapse.TRANSITION_DURATION = 350
Collapse.DEFAULTS = {
- toggle: true,
- trigger: '[data-toggle="collapse"]'
+ toggle: true
}
Collapse.prototype.dimension = function () {
@@ -731,7 +731,7 @@ if (typeof jQuery === 'undefined') {
var $target = getTargetFromTrigger($this)
var data = $target.data('bs.collapse')
- var option = data ? 'toggle' : $.extend({}, $this.data(), { trigger: this })
+ var option = data ? 'toggle' : $this.data()
Plugin.call($target, option)
})