Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dist/js/umd/scrollspy.js')
-rw-r--r--dist/js/umd/scrollspy.js3
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]();
}
});