assets/js/romo/spinner.js in romo-0.20.3 vs assets/js/romo/spinner.js in romo-0.20.4

- old
+ new

@@ -9,10 +9,14 @@ Romo.trigger(this.elem, 'romoSpinner:ready', [this]); }); RomoSpinner.prototype.doStart = function(customBasisSize) { + if (this.spinner !== undefined) { + return; + } + var basisSize = ( customBasisSize || Romo.data(this.elem, 'romo-spinner-basis-size') || Math.min(Romo.width(this.elem), Romo.height(this.elem)) ); @@ -49,9 +53,13 @@ Romo.trigger(this.elem, 'romoSpinner:start', [this]); } RomoSpinner.prototype.doStop = function() { + if (this.spinner === undefined) { + return; + } + if (this.spinner !== undefined) { this.spinner.stop(); this.spinner = undefined; } if (this.elemHtml !== undefined) {