From 22f851fa6232b2db2efedbabcc5b532e424525f3 Mon Sep 17 00:00:00 2001 From: fat Date: Sat, 5 Jul 2014 23:28:44 -0700 Subject: [PATCH] =?UTF-8?q?apply=20#14022=20without=20semicolon=20?= =?UTF-8?q?=E2=80=93=20cleans=20up=20some=20jquery=20class=20usage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/collapse.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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')) }