Bugfix. Better check to see if spinner is already active

This commit is contained in:
JC Brand 2017-04-04 07:56:18 +00:00
parent d83f64bcc9
commit 9ecb3e227f

View File

@ -182,7 +182,7 @@
}, },
addSpinner: function () { addSpinner: function () {
if (!this.$content.first().hasClass('spinner')) { if (_.isNull(this.el.querySelector('.spinner'))) {
this.$content.prepend('<span class="spinner"/>'); this.$content.prepend('<span class="spinner"/>');
} }
}, },