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
@*/
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,