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