Procházet zdrojové kódy

Bugfix. Better check to see if spinner is already active

JC Brand před 8 roky
rodič
revize
9ecb3e227f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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"/>');
                     }
                 },