diff options
| author | Johann-S <[email protected]> | 2018-06-17 23:00:49 +0200 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-02-20 22:05:45 +0200 |
| commit | 0b726de94e6a30612dcd227222afd3b61516dae0 (patch) | |
| tree | 5481d68062fb94d7610217c8c833af2f45f31785 /js/src/dom/data.js | |
| parent | 83cea3bafa57987b8cd6be0557bbca8364ab1fee (diff) | |
| download | bootstrap-0b726de94e6a30612dcd227222afd3b61516dae0.tar.xz bootstrap-0b726de94e6a30612dcd227222afd3b61516dae0.zip | |
fix(carousel): on load page create a carousel
Diffstat (limited to 'js/src/dom/data.js')
| -rw-r--r-- | js/src/dom/data.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/dom/data.js b/js/src/dom/data.js index 838e13a1d..2c1115125 100644 --- a/js/src/dom/data.js +++ b/js/src/dom/data.js @@ -28,7 +28,7 @@ const Data = (() => { storeData[element.key.id] = data }, get(element, key) { - if (typeof element === 'undefined' || typeof element.key === 'undefined') { + if (!element || typeof element.key === 'undefined') { return null } |
