aboutsummaryrefslogtreecommitdiff
path: root/js/tests/visual
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2019-02-13 19:37:52 +0200
committerXhmikosR <[email protected]>2019-02-20 22:05:45 +0200
commit764bab29418309454ca81a9bf8e19d4f903c6e21 (patch)
tree6e36a5079071f0d344c5f1b7a1e64481508897ae /js/tests/visual
parentf0c6b24bd78638736155d6e963621ea19dc68046 (diff)
downloadbootstrap-764bab29418309454ca81a9bf8e19d4f903c6e21.tar.xz
bootstrap-764bab29418309454ca81a9bf8e19d4f903c6e21.zip
remove polyfills which override browsers default
Diffstat (limited to 'js/tests/visual')
-rw-r--r--js/tests/visual/modal.html6
-rw-r--r--js/tests/visual/popover.html2
-rw-r--r--js/tests/visual/tooltip.html2
3 files changed, 5 insertions, 5 deletions
diff --git a/js/tests/visual/modal.html b/js/tests/visual/modal.html
index b37beeef3..f9d8b3f89 100644
--- a/js/tests/visual/modal.html
+++ b/js/tests/visual/modal.html
@@ -230,13 +230,13 @@
}
}
- document.querySelectorAll('[data-toggle="popover"]')
+ [].slice.call(document.querySelectorAll('[data-toggle="popover"]'))
.forEach(function (popover) {
new Popover(popover)
})
- document.querySelectorAll('[data-toggle="tooltip"]')
- .forEach(function (tooltip) {
+ var tooltipList = [].slice.call(document.querySelectorAll('[data-toggle="tooltip"]'))
+ tooltipList.forEach(function (tooltip) {
new Tooltip(tooltip)
})
diff --git a/js/tests/visual/popover.html b/js/tests/visual/popover.html
index d408dbb90..86916c3d4 100644
--- a/js/tests/visual/popover.html
+++ b/js/tests/visual/popover.html
@@ -42,7 +42,7 @@
<script src="../../dist/popover.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function () {
- document.querySelectorAll('[data-toggle="popover"]')
+ [].slice.call(document.querySelectorAll('[data-toggle="popover"]'))
.forEach(function (popover) {
new Popover(popover)
})
diff --git a/js/tests/visual/tooltip.html b/js/tests/visual/tooltip.html
index 1cc5507a7..643597a40 100644
--- a/js/tests/visual/tooltip.html
+++ b/js/tests/visual/tooltip.html
@@ -97,7 +97,7 @@
})
}
- document.querySelectorAll('[data-toggle="tooltip"]')
+ [].slice.call(document.querySelectorAll('[data-toggle="tooltip"]'))
.forEach(function (tooltip) {
new Tooltip(tooltip)
})