瀏覽代碼

Bugfix. Didn't call debounced method.

Causing the chat box to not appear when a new message is received.
JC Brand 10 年之前
父節點
當前提交
79fba8a6c6
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      converse.js

+ 2 - 3
converse.js

@@ -1547,7 +1547,7 @@
                     converse.incrementMsgCounter();
                 }
                 if (!this.model.get('minimized') && !this.$el.is(':visible')) {
-                    _.debounce(this.show, 100);
+                    _.debounce(this.show.bind(this), 100)();
                 }
             },
 
@@ -2022,8 +2022,7 @@
                     }
                     this.setChatState(ACTIVE);
                     this.scrollDown().focus();
-                    }.bind(this)
-                );
+                }.bind(this));
                 return this;
             },