From c4741be438b756ae884be4a700a0e66b912079bb Mon Sep 17 00:00:00 2001 From: Matei Stanca <i@ambientimpact.com> Date: Thu, 28 Nov 2024 12:14:55 -0500 Subject: [PATCH] Issue #3488464: Removed unnecessary ProgressBar~#transitionOut() method. --- components/progress-bar/progress-bar.js | 26 +++++++------------------ 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/components/progress-bar/progress-bar.js b/components/progress-bar/progress-bar.js index 09e82eb..064467f 100644 --- a/components/progress-bar/progress-bar.js +++ b/components/progress-bar/progress-bar.js @@ -148,7 +148,13 @@ return new Promise(async (resolve, reject) => { - await this.#transitionOut(); + this.#setInactive(); + + await new Promise((resolve, reject) => { + + window.setTimeout(resolve, this.#transitionDuration * 1.5); + + }); this.uninstall(); this.#visible = false; @@ -182,24 +188,6 @@ } - /** - * Transition the progress bar out. - * - * @return {Promise} - * A Promise that resolves when the transition is considered complete. - */ - #transitionOut() { - - this.#setInactive(); - - return new Promise((resolve, reject) => { - - window.setTimeout(resolve, this.#transitionDuration * 1.5); - - }); - - } - /** * Explicitly set the progress bar to a value. * -- GitLab