remove some code which may be over-engineering

pull/1/head
Caleb James DeLisle 10 years ago
parent 2a1f3f9027
commit e3a54c11ee

@ -99,9 +99,6 @@ window.ErrorBox = ErrorBox;
var SPINNER = [ '-', '\\', '|', '/' ]; var SPINNER = [ '-', '\\', '|', '/' ];
var kickSpinner = function (spinnerElement, reversed) { var kickSpinner = function (spinnerElement, reversed) {
var now = (new Date()).getTime();
if (spinnerElement.time && (now - spinnerElement.time) < 50) { return; }
spinnerElement.time = now;
var txt = spinnerElement.textContent || '-'; var txt = spinnerElement.textContent || '-';
var inc = (reversed) ? -1 : 1; var inc = (reversed) ? -1 : 1;
spinnerElement.textContent = SPINNER[(SPINNER.indexOf(txt) + inc) % SPINNER.length]; spinnerElement.textContent = SPINNER[(SPINNER.indexOf(txt) + inc) % SPINNER.length];

Loading…
Cancel
Save