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 'js/dist/modal.js')
-rw-r--r--js/dist/modal.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/dist/modal.js b/js/dist/modal.js
index d24b9d335a..4b144efe0e 100644
--- a/js/dist/modal.js
+++ b/js/dist/modal.js
@@ -462,6 +462,9 @@ var Modal = (function ($) {
}
if (typeof config === 'string') {
+ if (data[config] === undefined) {
+ throw new Error('No method named "' + config + '"');
+ }
data[config](relatedTarget);
} else if (_config.show) {
data.show(relatedTarget);