From: fat Date: Sun, 6 Jul 2014 06:28:44 +0000 (-0700) Subject: apply #14022 without semicolon – cleans up some jquery class usage X-Git-Tag: v3.3.0~397 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22f851fa6232b2db2efedbabcc5b532e424525f3;p=thirdparty%2Fbootstrap.git apply #14022 without semicolon – cleans up some jquery class usage --- diff --git a/js/collapse.js b/js/collapse.js index e4e6d79333..e6aa662863 100644 --- a/js/collapse.js +++ b/js/collapse.js @@ -88,8 +88,7 @@ this.$element .addClass('collapsing') - .removeClass('collapse') - .removeClass('in') + .removeClass('collapse in') this.transitioning = 1 @@ -110,7 +109,7 @@ } Collapse.prototype.toggle = function () { - this[this.$element.hasClass('in') ? 'hide' : 'show']() + $this.toggleClass('collapsed', $target.hasClass('in')) }