aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2014-05-22 09:48:17 +0300
committerXhmikosR <[email protected]>2014-06-06 01:23:07 +0300
commit82fc03f3b6caccd134827a83c346456b920f4ba8 (patch)
tree114df6f08af865a39b27a73dfafb078603f2ef5e
parent7b0acf14d8a7c7c6089035a848cba540ed963f36 (diff)
downloadbootstrap-82fc03f3b6caccd134827a83c346456b920f4ba8.tar.xz
bootstrap-82fc03f3b6caccd134827a83c346456b920f4ba8.zip
carousel.js: remove unneeded variable assignment.
`slideIndex` is assigned to the same value a few lines above.
-rw-r--r--js/carousel.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/carousel.js b/js/carousel.js
index 56aa8eb91..bda09543f 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)
}