diff options
author | XhmikosR <xhmikosr@gmail.com> | 2020-11-23 16:17:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-23 16:17:16 +0300 |
commit | 3e823e0b752b51b277a3a2d563c6b987f7496cf9 (patch) | |
tree | 24b73ff30fa930455a0c6430aaa2e78459d0d7b5 /js/dist/toast.js | |
parent | 21737ed530b7ac37fe1ce67026df373c04282ac8 (diff) |
Dist (#32216)
Diffstat (limited to 'js/dist/toast.js')
-rw-r--r-- | js/dist/toast.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/dist/toast.js b/js/dist/toast.js index fe5a9a3c54..81371c2ed0 100644 --- a/js/dist/toast.js +++ b/js/dist/toast.js @@ -42,8 +42,8 @@ transitionDuration = _window$getComputedSt.transitionDuration, transitionDelay = _window$getComputedSt.transitionDelay; - var floatTransitionDuration = parseFloat(transitionDuration); - var floatTransitionDelay = parseFloat(transitionDelay); // Return 0 if element or transition duration is not found + var floatTransitionDuration = Number.parseFloat(transitionDuration); + var floatTransitionDelay = Number.parseFloat(transitionDelay); // Return 0 if element or transition duration is not found if (!floatTransitionDuration && !floatTransitionDelay) { return 0; @@ -52,7 +52,7 @@ transitionDuration = transitionDuration.split(',')[0]; transitionDelay = transitionDelay.split(',')[0]; - return (parseFloat(transitionDuration) + parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER; + return (Number.parseFloat(transitionDuration) + Number.parseFloat(transitionDelay)) * MILLISECONDS_MULTIPLIER; }; var triggerTransitionEnd = function triggerTransitionEnd(element) { @@ -101,7 +101,7 @@ var _window = window, jQuery = _window.jQuery; - if (jQuery && !document.body.hasAttribute('data-no-jquery')) { + if (jQuery && !document.body.hasAttribute('data-bs-no-jquery')) { return jQuery; } @@ -150,7 +150,7 @@ autohide: true, delay: 5000 }; - var SELECTOR_DATA_DISMISS = '[data-dismiss="toast"]'; + var SELECTOR_DATA_DISMISS = '[data-bs-dismiss="toast"]'; /** * ------------------------------------------------------------------------ * Class Definition |