diff options
Diffstat (limited to 'js/dist/collapse.js')
-rw-r--r-- | js/dist/collapse.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/dist/collapse.js b/js/dist/collapse.js index 6774f7431a..27277b6ab9 100644 --- a/js/dist/collapse.js +++ b/js/dist/collapse.js @@ -314,6 +314,9 @@ var Collapse = (function ($) { } if (typeof config === 'string') { + if (data[config] === undefined) { + throw new Error('No method named "' + config + '"'); + } data[config](); } }); |