diff options
author | Mark Otto <markdotto@gmail.com> | 2018-09-19 07:35:40 +0300 |
---|---|---|
committer | Mark Otto <markdotto@gmail.com> | 2018-09-19 07:35:40 +0300 |
commit | f6244654a6389898f506eaa865bd900e994c077f (patch) | |
tree | 15056266edb91fe09d591adc6994f49e3ac9bcd5 /dist/js/bootstrap.js | |
parent | 0bec1c889711823494d2821fa6e5841169df4797 (diff) |
dist
Diffstat (limited to 'dist/js/bootstrap.js')
-rw-r--r-- | dist/js/bootstrap.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js index 39bbd8d9ff..02fc787f0d 100644 --- a/dist/js/bootstrap.js +++ b/dist/js/bootstrap.js @@ -908,6 +908,15 @@ Util.reflow(nextElement); $$$1(activeElement).addClass(directionalClassName); $$$1(nextElement).addClass(directionalClassName); + var nextElementInterval = parseInt(nextElement.getAttribute('data-interval'), 10); + + if (nextElementInterval) { + this._config.defaultInterval = this._config.defaultInterval || this._config.interval; + this._config.interval = nextElementInterval; + } else { + this._config.interval = this._config.defaultInterval || this._config.interval; + } + var transitionDuration = Util.getTransitionDurationFromElement(activeElement); $$$1(activeElement).one(Util.TRANSITION_END, function () { $$$1(nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(ClassName.ACTIVE); |