update loading icon

This commit is contained in:
rlx 2013-07-29 10:49:48 +00:00
parent 77319eb44f
commit dba5f268ea

View file

@ -63,12 +63,13 @@ Ox.LoadingIcon = function(options, self) {
() -> <f> Loading Icon Element () -> <f> Loading Icon Element
@*/ @*/
that.stop = function(callback) { that.stop = function(callback) {
var loadingInterval = self.loadingInterval; if (self.loadingInterval && !self.stopping) {
if (self.loadingInterval) { self.stopping = true;
self.loadingInterval = void 0;
that.stopAnimation().animate({opacity: 0}, 250, function() { that.stopAnimation().animate({opacity: 0}, 250, function() {
var css = 'rotate(0deg)'; var css = 'rotate(0deg)';
clearInterval(loadingInterval); clearInterval(self.loadingInterval);
self.loadingInterval = null;
self.stopping = false;
that.css({ that.css({
MozTransform: css, MozTransform: css,
MsTransform: css, MsTransform: css,