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:
authorXhmikosR <xhmikosr@gmail.com>2019-02-24 16:42:18 +0300
committerGitHub <noreply@github.com>2019-02-24 16:42:18 +0300
commit5ad21218192ddab3d798203065ac947cce03d76d (patch)
tree18d22047d15fe386092523fee5f4b30bbc9e95bc /js/tests/visual/carousel.html
parent5328d0db0d3ce909dca12b9ded4356da6f5971e4 (diff)
Remove DOMContentLoaded. (#28337)
There's no reason for us to wait here.
Diffstat (limited to 'js/tests/visual/carousel.html')
-rw-r--r--js/tests/visual/carousel.html23
1 files changed, 11 insertions, 12 deletions
diff --git a/js/tests/visual/carousel.html b/js/tests/visual/carousel.html
index fba62866d1..7dfc05ec58 100644
--- a/js/tests/visual/carousel.html
+++ b/js/tests/visual/carousel.html
@@ -54,19 +54,18 @@
<script src="../../dist/util.js"></script>
<script src="../../dist/carousel.js"></script>
<script>
- document.addEventListener('DOMContentLoaded', function () {
- var t0, t1;
- var carousel = document.getElementById('carousel-example-generic')
+ var t0
+ var t1
+ var carousel = document.getElementById('carousel-example-generic')
- // Test to show that the carousel doesn't slide when the current tab isn't visible
- // Test to show that transition-duration can be changed with css
- carousel.addEventListener('slid.bs.carousel', function (event) {
- t1 = performance.now()
- console.log('transition-duration took ' + (t1 - t0) + 'ms, slid at ', event.timeStamp)
- })
- carousel.addEventListener('slide.bs.carousel', function () {
- t0 = performance.now()
- })
+ // Test to show that the carousel doesn't slide when the current tab isn't visible
+ // Test to show that transition-duration can be changed with css
+ carousel.addEventListener('slid.bs.carousel', function (event) {
+ t1 = performance.now()
+ console.log('transition-duration took ' + (t1 - t0) + 'ms, slid at ', event.timeStamp)
+ })
+ carousel.addEventListener('slide.bs.carousel', function () {
+ t0 = performance.now()
})
</script>
</body>