From dba5f268eafc0df515b3a6d5a0d42e1510ffedb3 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Mon, 29 Jul 2013 10:49:48 +0000 Subject: [PATCH] update loading icon --- source/Ox.UI/js/Core/LoadingIcon.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/Ox.UI/js/Core/LoadingIcon.js b/source/Ox.UI/js/Core/LoadingIcon.js index bd530437..ffa453b8 100644 --- a/source/Ox.UI/js/Core/LoadingIcon.js +++ b/source/Ox.UI/js/Core/LoadingIcon.js @@ -63,12 +63,13 @@ Ox.LoadingIcon = function(options, self) { () -> Loading Icon Element @*/ that.stop = function(callback) { - var loadingInterval = self.loadingInterval; - if (self.loadingInterval) { - self.loadingInterval = void 0; + if (self.loadingInterval && !self.stopping) { + self.stopping = true; that.stopAnimation().animate({opacity: 0}, 250, function() { var css = 'rotate(0deg)'; - clearInterval(loadingInterval); + clearInterval(self.loadingInterval); + self.loadingInterval = null; + self.stopping = false; that.css({ MozTransform: css, MsTransform: css,