From f83043e5ab615d1a89054c459f3b590d6b14d9bc Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 17 Feb 2017 22:07:11 +0100 Subject: [PATCH] Fix reference to missing parameter. --- src/converse-chatview.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/converse-chatview.js b/src/converse-chatview.js index 73d0f9e2e..a669f26ce 100644 --- a/src/converse-chatview.js +++ b/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) {