]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
apply #14022 without semicolon – cleans up some jquery class usage
authorfat <jacobthornton@gmail.com>
Sun, 6 Jul 2014 06:28:44 +0000 (23:28 -0700)
committerfat <jacobthornton@gmail.com>
Sun, 6 Jul 2014 06:28:44 +0000 (23:28 -0700)
js/collapse.js

index e4e6d7933394a13feea4cbd41b8fc50066008d89..e6aa6628634709777c09b1bf821877d43da55917 100644 (file)
@@ -88,8 +88,7 @@
 
     this.$element
       .addClass('collapsing')
-      .removeClass('collapse')
-      .removeClass('in')
+      .removeClass('collapse in')
 
     this.transitioning = 1
 
   }
 
   Collapse.prototype.toggle = function () {
-    this[this.$element.hasClass('in') ? 'hide' : 'show']()
+    $this.toggleClass('collapsed', $target.hasClass('in'))
   }