aboutsummaryrefslogtreecommitdiff
path: root/js/src/carousel.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2017-07-27 13:39:55 +0300
committerXhmikosR <[email protected]>2017-08-23 00:05:38 +0300
commitef8c77d8dcebd13559a141e419d003c2d10cc5f3 (patch)
treefa0efba9d60de5570eeac2b7ae0262916d64401d /js/src/carousel.js
parent0492c3a4cd0aed19f46c5472a54ee8700c1a328e (diff)
downloadbootstrap-ef8c77d8dcebd13559a141e419d003c2d10cc5f3.tar.xz
bootstrap-ef8c77d8dcebd13559a141e419d003c2d10cc5f3.zip
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 6bcf470f9..873660519 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]()