1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-10 15:44:51 +02:00

Fix the new JSHint warnings.

This commit is contained in:
XhmikosR
2014-04-03 10:48:30 +03:00
parent 76e717b233
commit 2b30b48894

View File

@@ -51,8 +51,7 @@
this.$element this.$element
.removeClass('collapse') .removeClass('collapse')
.addClass('collapsing') .addClass('collapsing')[dimension](0)
[dimension](0)
this.transitioning = 1 this.transitioning = 1
@@ -60,8 +59,7 @@
if (e && e.target != this.$element[0]) return if (e && e.target != this.$element[0]) return
this.$element this.$element
.removeClass('collapsing') .removeClass('collapsing')
.addClass('collapse in') .addClass('collapse in')[dimension]('auto')
[dimension]('auto')
this.transitioning = 0 this.transitioning = 0
this.$element.trigger('shown.bs.collapse') this.$element.trigger('shown.bs.collapse')
} }
@@ -72,8 +70,7 @@
this.$element this.$element
.one($.support.transition.end, $.proxy(complete, this)) .one($.support.transition.end, $.proxy(complete, this))
.emulateTransitionEnd(350) .emulateTransitionEnd(350)[dimension](this.$element[0][scrollSize])
[dimension](this.$element[0][scrollSize])
} }
Collapse.prototype.hide = function () { Collapse.prototype.hide = function () {
@@ -85,9 +82,7 @@
var dimension = this.dimension() var dimension = this.dimension()
this.$element this.$element[dimension](this.$element[dimension]())[0].offsetHeight
[dimension](this.$element[dimension]())
[0].offsetHeight
this.$element this.$element
.addClass('collapsing') .addClass('collapsing')