0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-26 23:54:23 +01:00

modal use global scope for default

This commit is contained in:
MietekN 2018-04-12 11:21:10 +02:00 committed by Johann-S
parent 5be2cd3d6c
commit 418fd76ba9

View File

@ -498,7 +498,7 @@ const Modal = (($) => {
return this.each(function () { return this.each(function () {
let data = $(this).data(DATA_KEY) let data = $(this).data(DATA_KEY)
const _config = { const _config = {
...Modal.Default, ...Default,
...$(this).data(), ...$(this).data(),
...typeof config === 'object' && config ...typeof config === 'object' && config
} }