]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
carousel.js: remove unneeded variable assignment.
authorXhmikosR <xhmikosr@users.sourceforge.net>
Thu, 22 May 2014 06:48:17 +0000 (09:48 +0300)
committerXhmikosR <xhmikosr@users.sourceforge.net>
Thu, 5 Jun 2014 22:23:07 +0000 (01:23 +0300)
`slideIndex` is assigned to the same value a few lines above.

js/carousel.js

index 56aa8eb917cbc85a306672a2d785ef0f3e80f7c4..bda09543fad42413bfe140e577a131dc838620ba 100644 (file)
 
     Plugin.call($target, options)
 
-    if (slideIndex = $this.attr('data-slide-to')) {
+    if (slideIndex) {
       $target.data('bs.carousel').to(slideIndex)
     }