Commit f968f56e authored by JC Brand's avatar JC Brand

Bugfix. Use object vars instead of prototype vars.

parent 6a49090a
...@@ -564,23 +564,17 @@ Strophe.addConnectionPlugin('muc', { ...@@ -564,23 +564,17 @@ Strophe.addConnectionPlugin('muc', {
XmppRoom = (function() { XmppRoom = (function() {
XmppRoom.prototype.roster = {};
XmppRoom.prototype._message_handlers = {};
XmppRoom.prototype._presence_handlers = {};
XmppRoom.prototype._roster_handlers = {};
XmppRoom.prototype._handler_ids = 0;
function XmppRoom(client, name, nick, password) { function XmppRoom(client, name, nick, password) {
this.roster = {};
this._message_handlers = {};
this._presence_handlers = {};
this._roster_handlers = {};
this._handler_ids = 0;
this.client = client; this.client = client;
this.name = name; this.name = name;
this.nick = nick; this.nick = nick;
this.password = password; this.password = password;
this._roomRosterHandler = __bind(this._roomRosterHandler, this); this._roomRosterHandler = __bind(this._roomRosterHandler, this);
this._addOccupant = __bind(this._addOccupant, this); this._addOccupant = __bind(this._addOccupant, this);
if (client.muc) { if (client.muc) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment