update loading icon
This commit is contained in:
parent
77319eb44f
commit
dba5f268ea
1 changed files with 5 additions and 4 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue