aboutsummaryrefslogtreecommitdiff
path: root/js/src/modal.js
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2018-06-07 21:43:04 +0200
committerXhmikosR <[email protected]>2019-02-20 22:05:45 +0200
commit2b780787797da2bed2af0f95963be61e2b8e94a4 (patch)
treec5efa177458d3a64b4a072137b6c171ac65bfcfd /js/src/modal.js
parent7eddee286eb76da4d057a59706e4c512206dab45 (diff)
downloadbootstrap-2b780787797da2bed2af0f95963be61e2b8e94a4.tar.xz
bootstrap-2b780787797da2bed2af0f95963be61e2b8e94a4.zip
fix(data): do not use data object in our unit tests
Diffstat (limited to 'js/src/modal.js')
-rw-r--r--js/src/modal.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/src/modal.js b/js/src/modal.js
index 6da3d25aa..4f23fff74 100644
--- a/js/src/modal.js
+++ b/js/src/modal.js
@@ -498,6 +498,10 @@ class Modal {
} else {
document.body.style.paddingRight = ''
}
+
+ static _getInstance(element) {
+ return Data.getData(element, DATA_KEY)
+ }
}
_getScrollbarWidth() { // thx d.walsh