Explorar el Código

fix event prevention on chat restore

Sergey Fedoseev hace 10 años
padre
commit
6addfdabb0
Se han modificado 1 ficheros con 5 adiciones y 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)