Ver código fonte

[eslint] no-new

tags/v0.0.2
Lyubo Marinov 8 anos atrás
pai
commit
09aad8fc9f
2 arquivos alterados com 6 adições e 3 exclusões
  1. 1
    0
      .eslintrc.js
  2. 5
    3
      JitsiConference.js

+ 1
- 0
.eslintrc.js Ver arquivo

@@ -101,6 +101,7 @@ module.exports = {
101 101
         'no-multi-spaces': 2,
102 102
         'no-multi-str': 2,
103 103
         'no-native-reassign': 2,
104
+        'no-new': 2,
104 105
         'no-new-func': 2,
105 106
         'no-octal': 2,
106 107
         'no-octal-escape': 2,

+ 5
- 3
JitsiConference.js Ver arquivo

@@ -141,9 +141,11 @@ JitsiConference.prototype._init = function(options) {
141 141
     this.eventManager.setupStatisticsListeners();
142 142
 
143 143
     if (this.options.config.enableTalkWhileMuted) {
144
-        new TalkMutedDetection(this, () => {
145
-            this.eventEmitter.emit(JitsiConferenceEvents.TALK_WHILE_MUTED);
146
-        });
144
+        // eslint-disable-next-line no-new
145
+        new TalkMutedDetection(
146
+            this,
147
+            () =>
148
+                this.eventEmitter.emit(JitsiConferenceEvents.TALK_WHILE_MUTED));
147 149
     }
148 150
 };
149 151
 

Carregando…
Cancelar
Salvar