aboutsummaryrefslogtreecommitdiff
path: root/js/dist/carousel.js
diff options
context:
space:
mode:
authorfat <[email protected]>2015-05-12 16:52:54 -0700
committerfat <[email protected]>2015-05-12 16:52:54 -0700
commitab1578465aee4a776412b48f16bfefca79381919 (patch)
tree0766caa82a67cd6328273aa5f2a826c579d44d32 /js/dist/carousel.js
parenta58febf71a5eac2161ce2db08c7d723755ed1163 (diff)
downloadbootstrap-ab1578465aee4a776412b48f16bfefca79381919.tar.xz
bootstrap-ab1578465aee4a776412b48f16bfefca79381919.zip
grunt test-js, grunt dist-js now working
Diffstat (limited to 'js/dist/carousel.js')
-rw-r--r--js/dist/carousel.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/dist/carousel.js b/js/dist/carousel.js
index b1ef4184f..0d78153be 100644
--- a/js/dist/carousel.js
+++ b/js/dist/carousel.js
@@ -133,7 +133,7 @@ var Carousel = (function ($) {
}
if (this._config.interval && !this._isPaused) {
- this._interval = setInterval(this.next.bind(this), this._config.interval);
+ this._interval = setInterval($.proxy(this.next, this), this._config.interval);
}
}
}, {
@@ -173,11 +173,11 @@ var Carousel = (function ($) {
value: function _addEventListeners() {
if (this._config.keyboard) {
- $(this._element).on('keydown.bs.carousel', this._keydown.bind(this));
+ $(this._element).on('keydown.bs.carousel', $.proxy(this._keydown, this));
}
if (this._config.pause == 'hover' && !('ontouchstart' in document.documentElement)) {
- $(this._element).on('mouseenter.bs.carousel', this.pause.bind(this)).on('mouseleave.bs.carousel', this.cycle.bind(this));
+ $(this._element).on('mouseenter.bs.carousel', $.proxy(this.pause, this)).on('mouseleave.bs.carousel', $.proxy(this.cycle, this));
}
}
}, {