Ver Fonte

Fixes #496. Bind converse to this in callback.

JC Brand há 9 anos atrás
pai
commit
eeb8210ff6
2 ficheiros alterados com 2 adições e 1 exclusões
  1. 1 1
      converse.js
  2. 1 0
      docs/CHANGES.rst

+ 1 - 1
converse.js

@@ -822,7 +822,7 @@
                         return this.ping();
                     }
                     return true;
-                });
+                }.bind(converse));
             }
         };
 

+ 1 - 0
docs/CHANGES.rst

@@ -7,6 +7,7 @@ Changelog
 * #462 Fix MUC rooms with names containing special characters not working [1st8]
 * #468 Fix [object Object] being sometimes shown as status [1st8]
 * #493 Roster wasn't being updated after a Roster push update [teseo, jcbrand]
+* #496 Bugfix. Pings weren't being sent out. [teseo, jcbrand]
 
 0.9.5 (2015-08-24)
 ------------------