From f968f56eb55f570b426eab08bf6a83be8b27624f Mon Sep 17 00:00:00 2001 From: JC Brand Date: Mon, 10 Dec 2012 18:10:16 +0200 Subject: [PATCH] Bugfix. Use object vars instead of prototype vars. --- Libraries/strophe.muc.js | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/Libraries/strophe.muc.js b/Libraries/strophe.muc.js index c332f3403..dfb5fdde2 100644 --- a/Libraries/strophe.muc.js +++ b/Libraries/strophe.muc.js @@ -564,23 +564,17 @@ Strophe.addConnectionPlugin('muc', { 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) { + this.roster = {}; + this._message_handlers = {}; + this._presence_handlers = {}; + this._roster_handlers = {}; + this._handler_ids = 0; this.client = client; this.name = name; this.nick = nick; this.password = password; this._roomRosterHandler = __bind(this._roomRosterHandler, this); - this._addOccupant = __bind(this._addOccupant, this); if (client.muc) {