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