Merge pull request #246 from sir-sigurd/fix-restore-event-prevention
fix event prevention on chat restore
This commit is contained in:
commit
e8d3b94420
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user