diff options
Diffstat (limited to 'js/dist/dropdown.js')
-rw-r--r-- | js/dist/dropdown.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/dist/dropdown.js b/js/dist/dropdown.js index f90861ec0c..e533eb7061 100644 --- a/js/dist/dropdown.js +++ b/js/dist/dropdown.js @@ -149,6 +149,9 @@ var Dropdown = (function ($) { } if (typeof config === 'string') { + if (data[config] === undefined) { + throw new Error('No method named "' + config + '"'); + } data[config].call(this); } }); |