2
0
Эх сурвалжийг харах

Fix reference to missing parameter.

JC Brand 8 жил өмнө
parent
commit
f83043e5ab

+ 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) {