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:
authorXhmikosR <xhmikosr@gmail.com>2017-07-27 13:39:55 +0300
committerXhmikosR <xhmikosr@gmail.com>2017-08-23 00:05:38 +0300
commitef8c77d8dcebd13559a141e419d003c2d10cc5f3 (patch)
treefa0efba9d60de5570eeac2b7ae0262916d64401d /js/src/carousel.js
parent0492c3a4cd0aed19f46c5472a54ee8700c1a328e (diff)
Tweak ESLint rules.
Diffstat (limited to 'js/src/carousel.js')
-rw-r--r--js/src/carousel.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/carousel.js b/js/src/carousel.js
index 6bcf470f98..8736605190 100644
--- a/js/src/carousel.js
+++ b/js/src/carousel.js
@@ -443,7 +443,7 @@ const Carousel = (($) => {
if (typeof config === 'number') {
data.to(config)
} else if (typeof action === 'string') {
- if (data[action] === undefined) {
+ if (typeof data[action] === 'undefined') {
throw new Error(`No method named "${action}"`)
}
data[action]()