diff options
author | Gleb Mazovetskiy <glex.spb@gmail.com> | 2015-10-12 05:57:33 +0300 |
---|---|---|
committer | Gleb Mazovetskiy <glex.spb@gmail.com> | 2015-10-12 05:57:33 +0300 |
commit | 357ce5cb41b4d6a5dabe76e294e29380c47c7783 (patch) | |
tree | 90a1fe94fa3ce7439181098e2362954de0f0377d /assets/javascripts/bootstrap/carousel.js | |
parent | 6e58d5c2a6be817a663f023c66d9b05b1d901f09 (diff) |
rake update[v4-dev]
Diffstat (limited to 'assets/javascripts/bootstrap/carousel.js')
-rw-r--r-- | assets/javascripts/bootstrap/carousel.js | 5 |
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(); |