Browse Source

Set immediate to true when calling _.debounce

When clicking on restore button for a minimized chat, the page's hash will change to `#`. It may cause problems for web apps that listen to changes in page's hash.

When `immediate` argument of `debounce` function is not set, `ev` is null and ev.preventDefault() will not be called.
Mohammad Javad Naderi 10 năm trước cách đây
mục cha
commit
5424e301ff
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      converse.js

+ 1 - 1
converse.js

@@ -3091,7 +3091,7 @@
                 this.model.messages.off('add',null,this);
                 this.remove();
                 this.model.maximize();
-            }, 200)
+            }, 200, true)
         });
 
         this.MinimizedChats = Backbone.Overview.extend({