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

github.com/twbs/bootstrap-rubygem.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Mazovetskiy <glex.spb@gmail.com>2015-10-12 05:57:33 +0300
committerGleb Mazovetskiy <glex.spb@gmail.com>2015-10-12 05:57:33 +0300
commit357ce5cb41b4d6a5dabe76e294e29380c47c7783 (patch)
tree90a1fe94fa3ce7439181098e2362954de0f0377d /assets/javascripts/bootstrap/carousel.js
parent6e58d5c2a6be817a663f023c66d9b05b1d901f09 (diff)
rake update[v4-dev]
Diffstat (limited to 'assets/javascripts/bootstrap/carousel.js')
-rw-r--r--assets/javascripts/bootstrap/carousel.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/assets/javascripts/bootstrap/carousel.js b/assets/javascripts/bootstrap/carousel.js
index 7345cbe..880ac45 100644
--- a/assets/javascripts/bootstrap/carousel.js
+++ b/assets/javascripts/bootstrap/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();