Explorar o código

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

fix event prevention on chat restore
JC Brand %!s(int64=10) %!d(string=hai) anos
pai
achega
e8d3b94420
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      converse.js

+ 5 - 1
converse.js

@@ -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)