diff options
author | XhmikosR <xhmikosr@gmail.com> | 2017-07-27 13:39:55 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2017-08-23 00:05:38 +0300 |
commit | ef8c77d8dcebd13559a141e419d003c2d10cc5f3 (patch) | |
tree | fa0efba9d60de5570eeac2b7ae0262916d64401d /js/src/carousel.js | |
parent | 0492c3a4cd0aed19f46c5472a54ee8700c1a328e (diff) |
Tweak ESLint rules.
Diffstat (limited to 'js/src/carousel.js')
-rw-r--r-- | js/src/carousel.js | 2 |
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]() |