Explorar o código

Fixes #496. Bind converse to this in callback.

JC Brand %!s(int64=9) %!d(string=hai) anos
pai
achega
eeb8210ff6
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  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)
 ------------------