mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-08 14:46:34 +02:00
grunt dist
This commit is contained in:
3
js/dist/modal.js
vendored
3
js/dist/modal.js
vendored
@@ -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);
|
||||
|
Reference in New Issue
Block a user