mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-13 17:14:04 +02:00
grunt dist
This commit is contained in:
5
js/dist/carousel.js
vendored
5
js/dist/carousel.js
vendored
@@ -387,7 +387,10 @@ var Carousel = (function ($) {
|
||||
|
||||
if (typeof config === 'number') {
|
||||
data.to(config);
|
||||
} else if (action) {
|
||||
} else if (typeof action === 'string') {
|
||||
if (data[action] === undefined) {
|
||||
throw new Error('No method named "' + action + '"');
|
||||
}
|
||||
data[action]();
|
||||
} else if (_config.interval) {
|
||||
data.pause();
|
||||
|
Reference in New Issue
Block a user