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/collapse.js | |
parent | 0492c3a4cd0aed19f46c5472a54ee8700c1a328e (diff) |
Tweak ESLint rules.
Diffstat (limited to 'js/src/collapse.js')
-rw-r--r-- | js/src/collapse.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/collapse.js b/js/src/collapse.js index 2f00b98cb6..718630bd37 100644 --- a/js/src/collapse.js +++ b/js/src/collapse.js @@ -343,7 +343,7 @@ const Collapse = (($) => { } if (typeof config === 'string') { - if (data[config] === undefined) { + if (typeof data[config] === 'undefined') { throw new Error(`No method named "${config}"`) } data[config]() |