mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
Carousel: omit config merging in jQueryInterface after we create the instance
This is already done inside `getOrCreateInstance` method
This commit is contained in:
parent
3ef6a435be
commit
28f150d720
@ -417,14 +417,6 @@ class Carousel extends BaseComponent {
|
||||
return this.each(function () {
|
||||
const data = Carousel.getOrCreateInstance(this, config)
|
||||
|
||||
let { _config } = data
|
||||
if (typeof config === 'object') {
|
||||
_config = {
|
||||
..._config,
|
||||
...config
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof config === 'number') {
|
||||
data.to(config)
|
||||
return
|
||||
@ -439,7 +431,7 @@ class Carousel extends BaseComponent {
|
||||
return
|
||||
}
|
||||
|
||||
if (_config.interval && _config.ride) {
|
||||
if (data._config.interval && data._config.ride) {
|
||||
data.pause()
|
||||
data.cycle()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user