Commit 5424e301 authored by Mohammad Javad Naderi's avatar Mohammad Javad Naderi

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.
parent 303a412b
......@@ -3091,7 +3091,7 @@
this.model.messages.off('add',null,this);
this.remove();
this.model.maximize();
}, 200)
}, 200, true)
});
this.MinimizedChats = Backbone.Overview.extend({
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment