Explorar o código

Bugfix. Better check to see if spinner is already active

JC Brand %!s(int64=8) %!d(string=hai) anos
pai
achega
9ecb3e227f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/converse-chatview.js

+ 1 - 1
src/converse-chatview.js

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