diff options
author | Johann-S <johann.servoire@gmail.com> | 2018-07-25 12:29:16 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2019-02-20 23:05:45 +0300 |
commit | c44db783bf17c907dd46f53fdaa917ec74ffbded (patch) | |
tree | 69a380068b58961b01e5cd465e118dbda4d376dd /js/src/alert.js | |
parent | cf821e1d4d1d67f6b4ce9651ae64c72a502c40ba (diff) |
chore(update): bump to 4.1.3
Diffstat (limited to 'js/src/alert.js')
-rw-r--r-- | js/src/alert.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/src/alert.js b/js/src/alert.js index bc368ae622..a8d0cc5da9 100644 --- a/js/src/alert.js +++ b/js/src/alert.js @@ -140,6 +140,16 @@ class Alert { }) } + static _handleDismiss(alertInstance) { + return function (event) { + if (event) { + event.preventDefault() + } + + alertInstance.close(this) + } + } + static _getInstance(element) { return Data.getData(element, DATA_KEY) } |