Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann-S <johann.servoire@gmail.com>2019-02-13 20:37:52 +0300
committerXhmikosR <xhmikosr@gmail.com>2019-02-20 23:05:45 +0300
commit764bab29418309454ca81a9bf8e19d4f903c6e21 (patch)
tree6e36a5079071f0d344c5f1b7a1e64481508897ae /js/tests/visual
parentf0c6b24bd78638736155d6e963621ea19dc68046 (diff)
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 b37beeef38..f9d8b3f890 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 d408dbb903..86916c3d42 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 1cc5507a79..643597a401 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)
})