Ver Fonte

Fix reference to missing parameter.

JC Brand há 8 anos atrás
pai
commit
f83043e5ab
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      src/converse-chatview.js

+ 2 - 2
src/converse-chatview.js

@@ -743,7 +743,7 @@
                     return this;
                 },
 
-                afterShown: function () {
+                afterShown: function (focus) {
                     if (_converse.connection.connected) {
                         // Without a connection, we haven't yet initialized
                         // localstorage
@@ -762,7 +762,7 @@
                         if (focus) { this.focus(); }
                         return;
                     }
-                    utils.fadeIn(this.el, this.afterShown.bind(this));
+                    utils.fadeIn(this.el, _.bind(this.afterShown, this, focus));
                 },
 
                 show: function (focus) {