From: XhmikosR Date: Thu, 22 May 2014 06:48:17 +0000 (+0300) Subject: carousel.js: remove unneeded variable assignment. X-Git-Tag: v3.2.0~120^2~1^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82fc03f3b6caccd134827a83c346456b920f4ba8;p=thirdparty%2Fbootstrap.git carousel.js: remove unneeded variable assignment. `slideIndex` is assigned to the same value a few lines above. --- diff --git a/js/carousel.js b/js/carousel.js index 56aa8eb917..bda09543fa 100644 --- a/js/carousel.js +++ b/js/carousel.js @@ -194,7 +194,7 @@ Plugin.call($target, options) - if (slideIndex = $this.attr('data-slide-to')) { + if (slideIndex) { $target.data('bs.carousel').to(slideIndex) }