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
path: root/js/src/util
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2020-12-02 07:45:15 +0300
committerGitHub <noreply@github.com>2020-12-02 07:45:15 +0300
commit701c6c6e77950ca2df6e4e89bdea8732983c1cdd (patch)
treed7f162d0eb4096ec4313d4f7beefc2cc39325cc3 /js/src/util
parentf05d64225da06a4f1a3494fa8bd0fe44046b0e8a (diff)
Unbreak lines. (#32304)
Diffstat (limited to 'js/src/util')
-rw-r--r--js/src/util/index.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/js/src/util/index.js b/js/src/util/index.js
index c7cb3176a4..874827b168 100644
--- a/js/src/util/index.js
+++ b/js/src/util/index.js
@@ -66,10 +66,7 @@ const getTransitionDurationFromElement = element => {
}
// Get transition-duration of the element
- let {
- transitionDuration,
- transitionDelay
- } = window.getComputedStyle(element)
+ let { transitionDuration, transitionDelay } = window.getComputedStyle(element)
const floatTransitionDuration = Number.parseFloat(transitionDuration)
const floatTransitionDelay = Number.parseFloat(transitionDelay)
@@ -96,6 +93,7 @@ const emulateTransitionEnd = (element, duration) => {
let called = false
const durationPadding = 5
const emulatedDuration = duration + durationPadding
+
function listener() {
called = true
element.removeEventListener(TRANSITION_END, listener)