Update stanzaio

This commit is contained in:
Lance Stout 2013-09-19 09:12:55 -07:00
parent cd0ef555b0
commit 3a288423bc
1 changed files with 3 additions and 3 deletions

View File

@ -5098,12 +5098,12 @@ WSConnection.prototype.connect = function (opts) {
self.conn = new WebSocket(opts.wsURL, 'xmpp'); self.conn = new WebSocket(opts.wsURL, 'xmpp');
self.conn.onerror = function (e) { self.conn.onerror = function (e) {
e.preventDefault(); e.preventDefault();
self.emit('disconnected', e); self.emit('disconnected', self);
return false; return false;
}; };
self.conn.onclose = function () { self.conn.onclose = function () {
self.emit('disconnected'); self.emit('disconnected', self);
}; };
self.conn.onopen = function () { self.conn.onopen = function () {
@ -14955,7 +14955,7 @@ exports.Paddle = Paddle;
*/ */
function Hi(text, salt, iterations) { function Hi(text, salt, iterations) {
var ui1 = HMAC(text, salt + '\0\0\0\1'); var ui1 = HMAC(text, salt + '\0\0\0\1');
ui = ui1; var ui = ui1;
for (var i = 0; i < iterations - 1; i++) { for (var i = 0; i < iterations - 1; i++) {
ui1 = HMAC(text, ui1); ui1 = HMAC(text, ui1);
ui = XOR(ui, ui1); ui = XOR(ui, ui1);