diff options
Diffstat (limited to 'dist/js/umd/scrollspy.js')
-rw-r--r-- | dist/js/umd/scrollspy.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dist/js/umd/scrollspy.js b/dist/js/umd/scrollspy.js index 7f38bfca14..9b070af25a 100644 --- a/dist/js/umd/scrollspy.js +++ b/dist/js/umd/scrollspy.js @@ -288,6 +288,9 @@ } if (typeof config === 'string') { + if (data[config] === undefined) { + throw new Error('No method named "' + config + '"'); + } data[config](); } }); |