]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix the new JSHint warnings.
authorXhmikosR <xhmikosr@users.sourceforge.net>
Thu, 3 Apr 2014 07:48:30 +0000 (10:48 +0300)
committerXhmikosR <xhmikosr@users.sourceforge.net>
Thu, 3 Apr 2014 07:53:13 +0000 (10:53 +0300)
js/collapse.js

index 59e27f13d113d77704fc2daf331f71135dce79fc..6f2205b6ff53352f6c2f2baa439ad80f1c38aecc 100644 (file)
@@ -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')