Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: metajack/strophejs-plugins
base: master
...
head fork: relaynetwork/strophejs-plugins
compare: master
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 11 additions and 16 deletions.
  1. +6 −6 muc/strophe.muc.coffee
  2. +5 −10 muc/strophe.muc.js
12 muc/strophe.muc.coffee
View
@@ -479,13 +479,13 @@ Strophe.addConnectionPlugin 'muc'
class XmppRoom
- roster: {}
- _message_handlers: {}
- _presence_handlers: {}
- _roster_handlers: {}
- _handler_ids: 0
-
constructor: (@client, @name, @nick, @password) ->
+ @roster = {}
+ @_message_handlers = {}
+ @_presence_handlers = {}
+ @_roster_handlers = {}
+ @_handler_ids = 0
+
@client = client.muc if client.muc
@name = Strophe.getBareJidFromJid name
@client.rooms[@name] = @
15 muc/strophe.muc.js
View
@@ -570,16 +570,6 @@
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.client = client;
this.name = name;
@@ -589,6 +579,11 @@
this._addOccupant = __bind(this._addOccupant, this);
+ this.roster = {};
+ this._message_handlers = {};
+ this._presence_handlers = {};
+ this._roster_handlers = {};
+ this._handler_ids = 0;
if (client.muc) {
this.client = client.muc;
}

No commit comments for this range

Something went wrong with that request. Please try again.