Selaa lähdekoodia

Don't use ES6 syntax

master
Sam Whited 9 vuotta sitten
vanhempi
commit
b6c887a812
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3
    3
      modules/xmpp/ChatRoom.js

+ 3
- 3
modules/xmpp/ChatRoom.js Näytä tiedosto

@@ -201,16 +201,16 @@ ChatRoom.prototype.discoRoomInfo = function () {
201 201
   var getInfo = $iq({type: 'get', to: this.roomjid})
202 202
     .c('query', {xmlns: Strophe.NS.DISCO_INFO});
203 203
 
204
-  this.connection.sendIQ(getInfo, (result) => {
204
+  this.connection.sendIQ(getInfo, function (result) {
205 205
     var locked = $(result).find('>query>feature[var="muc_passwordprotected"]').length;
206 206
     if (locked != this.locked) {
207 207
       this.eventEmitter.emit(XMPPEvents.MUC_LOCK_CHANGED, locked);
208 208
       this.locked = locked;
209 209
     }
210
-  }, (error) => {
210
+  }.bind(this), function (error) {
211 211
     GlobalOnErrorHandler.callErrorHandler(error);
212 212
     logger.error("Error getting room info: ", error);
213
-  });
213
+  }.bind(this));
214 214
 };
215 215
 
216 216
 

Loading…
Peruuta
Tallenna