Commit e8d3b944 authored by JC Brand's avatar JC Brand

Merge pull request #246 from sir-sigurd/fix-restore-event-prevention

fix event prevention on chat restore
parents 94680158 6addfdab
...@@ -3085,10 +3085,14 @@ ...@@ -3085,10 +3085,14 @@
return this; return this;
}, },
restore: _.debounce(function (ev) { restore: function(ev) {
if (ev && ev.preventDefault) { if (ev && ev.preventDefault) {
ev.preventDefault(); ev.preventDefault();
} }
this._restore();
},
_restore: _.debounce(function () {
this.remove(); this.remove();
this.model.maximize(); this.model.maximize();
}, 200) }, 200)
......
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