Skip to content

Commit

Permalink
fixes #2941 + whitespace in collapse
Browse files Browse the repository at this point in the history
  • Loading branch information
fat committed Apr 15, 2012
1 parent 13e4d1d commit 0b80426
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/assets/js/bootstrap-alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* ====================== */

var dismiss = '[data-dismiss="alert"]'
, Alert = function ( el ) {
, Alert = function (el) {
$(el).on('click', dismiss, this.close)
}

Expand Down Expand Up @@ -68,7 +68,7 @@
/* ALERT PLUGIN DEFINITION
* ======================= */

$.fn.alert = function ( option ) {
$.fn.alert = function (option) {
return this.each(function () {
var $this = $(this)
, data = $this.data('alert')
Expand Down
1 change: 1 addition & 0 deletions docs/assets/js/bootstrap-collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@

if (actives && actives.length) {
hasData = actives.data('collapse')
if (hasData && hasData.transitioning) return
actives.collapse('hide')
hasData || actives.data('collapse', null)
}
Expand Down
4 changes: 2 additions & 2 deletions js/bootstrap-alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* ====================== */

var dismiss = '[data-dismiss="alert"]'
, Alert = function ( el ) {
, Alert = function (el) {
$(el).on('click', dismiss, this.close)
}

Expand Down Expand Up @@ -68,7 +68,7 @@
/* ALERT PLUGIN DEFINITION
* ======================= */

$.fn.alert = function ( option ) {
$.fn.alert = function (option) {
return this.each(function () {
var $this = $(this)
, data = $this.data('alert')
Expand Down
1 change: 1 addition & 0 deletions js/bootstrap-collapse.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@

if (actives && actives.length) {
hasData = actives.data('collapse')
if (hasData && hasData.transitioning) return
actives.collapse('hide')
hasData || actives.data('collapse', null)
}
Expand Down

0 comments on commit 0b80426

Please sign in to comment.