aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2014-04-03 10:48:30 +0300
committerXhmikosR <[email protected]>2014-04-03 10:53:13 +0300
commit2b30b48894c7e0026939977fcc3aa0721e23bddf (patch)
treea64dc663bcd937e9967186e159894afa799722a8
parent76e717b23395ea3997de3d7039a8ec8ab216bbd4 (diff)
downloadbootstrap-2b30b48894c7e0026939977fcc3aa0721e23bddf.tar.xz
bootstrap-2b30b48894c7e0026939977fcc3aa0721e23bddf.zip
Fix the new JSHint warnings.
-rw-r--r--js/collapse.js13
1 files changed, 4 insertions, 9 deletions
diff --git a/js/collapse.js b/js/collapse.js
index 59e27f13d..6f2205b6f 100644
--- a/js/collapse.js
+++ b/js/collapse.js
@@ -51,8 +51,7 @@
this.$element
.removeClass('collapse')
- .addClass('collapsing')
- [dimension](0)
+ .addClass('collapsing')[dimension](0)
this.transitioning = 1
@@ -60,8 +59,7 @@
if (e && e.target != this.$element[0]) return
this.$element
.removeClass('collapsing')
- .addClass('collapse in')
- [dimension]('auto')
+ .addClass('collapse in')[dimension]('auto')
this.transitioning = 0
this.$element.trigger('shown.bs.collapse')
}
@@ -72,8 +70,7 @@
this.$element
.one($.support.transition.end, $.proxy(complete, this))
- .emulateTransitionEnd(350)
- [dimension](this.$element[0][scrollSize])
+ .emulateTransitionEnd(350)[dimension](this.$element[0][scrollSize])
}
Collapse.prototype.hide = function () {
@@ -85,9 +82,7 @@
var dimension = this.dimension()
- this.$element
- [dimension](this.$element[dimension]())
- [0].offsetHeight
+ this.$element[dimension](this.$element[dimension]())[0].offsetHeight
this.$element
.addClass('collapsing')