From 71d21363661bc86408fdbcb03445907d7cfba23e Mon Sep 17 00:00:00 2001 From: antarus66 Date: Fri, 21 Aug 2015 15:19:05 +0300 Subject: [PATCH] hot-fix-spinner: Fixed multiple spinner --- public/js/routes.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/js/routes.js b/public/js/routes.js index d0c3ba4..fd0769a 100644 --- a/public/js/routes.js +++ b/public/js/routes.js @@ -30,6 +30,9 @@ define(['app', 'progressbar'], function (App, ProgressBar) { Routes.spinner.animate(1.0, { duration: 2000, easing: 'easeOut' + }, function () { // Callback on animation finish + Routes.spinner.destroy(); + Routes.spinner = null; }); } }