diff options
| author | Chris Rebert <[email protected]> | 2014-04-25 17:48:02 -0700 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2014-04-25 17:48:02 -0700 |
| commit | 4bd29bfcff4a78d4828396d614139db2f308eb2a (patch) | |
| tree | 12cbadc179ba6a688d480396be8320590ee4cecf /js | |
| parent | 6617d8bcd1db42bf03a4b1d9288e16dae8acfd5a (diff) | |
| download | bootstrap-4bd29bfcff4a78d4828396d614139db2f308eb2a.tar.xz bootstrap-4bd29bfcff4a78d4828396d614139db2f308eb2a.zip | |
change 'slid' comments per @fat's feedback
Diffstat (limited to 'js')
| -rw-r--r-- | js/carousel.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/carousel.js b/js/carousel.js index 14a379fbf..07df86546 100644 --- a/js/carousel.js +++ b/js/carousel.js @@ -59,7 +59,7 @@ if (pos > (this.$items.length - 1) || pos < 0) return - if (this.sliding) return this.$element.one('slid.bs.carousel', function () { that.to(pos) }) // yes, "slid". not a typo. past tense of "to slide". + if (this.sliding) return this.$element.one('slid.bs.carousel', function () { that.to(pos) }) // yes, "slid" if (activeIndex == pos) return this.pause().cycle() return this.slide(pos > activeIndex ? 'next' : 'prev', $(this.$items[pos])) @@ -114,13 +114,13 @@ if (this.$indicators.length) { this.$indicators.find('.active').removeClass('active') - this.$element.one('slid.bs.carousel', function () { // yes, "slid". not a typo. past tense of "to slide". + this.$element.one('slid.bs.carousel', function () { // yes, "slid" var $nextIndicator = $(that.$indicators.children()[that.getActiveIndex()]) $nextIndicator && $nextIndicator.addClass('active') }) } - var slidEvent = $.Event('slid.bs.carousel', { relatedTarget: relatedTarget, direction: direction }) // yes, "slid". not a typo. past tense of "to slide". + var slidEvent = $.Event('slid.bs.carousel', { relatedTarget: relatedTarget, direction: direction }) // yes, "slid" if ($.support.transition && this.$element.hasClass('slide')) { $next.addClass(type) $next[0].offsetWidth // force reflow |
