Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <code@chrisrebert.com>2015-10-10 07:03:43 +0300
committerChris Rebert <code@chrisrebert.com>2015-10-10 07:03:57 +0300
commitb74536fa8cd5081c59ecd4c63728a7eba00efa2f (patch)
treed3a215ac8287d5775ae098ac42016dfb051f1df9 /js/dist/carousel.js
parentc989fcc857fb2318d5d62e53178cc0b223d4d708 (diff)
grunt dist
Diffstat (limited to 'js/dist/carousel.js')
-rw-r--r--js/dist/carousel.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/dist/carousel.js b/js/dist/carousel.js
index 7345cbe77c..880ac451fd 100644
--- a/js/dist/carousel.js
+++ b/js/dist/carousel.js
@@ -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();