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

fix event prevention on chat restore
This commit is contained in:
JC Brand 2014-10-09 17:05:58 +02:00
commit e8d3b94420

View File

@ -3085,10 +3085,14 @@
return this;
},
restore: _.debounce(function (ev) {
restore: function(ev) {
if (ev && ev.preventDefault) {
ev.preventDefault();
}
this._restore();
},
_restore: _.debounce(function () {
this.remove();
this.model.maximize();
}, 200)