aboutsummaryrefslogtreecommitdiff
path: root/js/src/dom/data.js
diff options
context:
space:
mode:
authorAlessandro Chitolina <[email protected]>2017-09-15 16:07:24 +0200
committerXhmikosR <[email protected]>2019-02-20 22:05:45 +0200
commit33211eefdfb27eff7ba21886e16f2efdc0efa3e6 (patch)
treef8f3f3342a6c2c2363448346debf52beb4954b21 /js/src/dom/data.js
parent9f9712b98c92678c709b2ad0adfa954e3c120911 (diff)
downloadbootstrap-33211eefdfb27eff7ba21886e16f2efdc0efa3e6.tar.xz
bootstrap-33211eefdfb27eff7ba21886e16f2efdc0efa3e6.zip
Rewritten modal without jquery (#23955)
* Trigger jquery events if available in event handler * Rewritten modal without jquery
Diffstat (limited to 'js/src/dom/data.js')
-rw-r--r--js/src/dom/data.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/dom/data.js b/js/src/dom/data.js
index 655706fbc..68908d8f2 100644
--- a/js/src/dom/data.js
+++ b/js/src/dom/data.js
@@ -21,7 +21,7 @@ const mapData = (() => {
id++
},
get(element, key) {
- if (typeof element.key === 'undefined') {
+ if (typeof element === 'undefined' || typeof element.key === 'undefined') {
return null
}