Procházet zdrojové kódy

fix(eslint): Add no-extra-bind rule

dev1
hristoterezov před 8 roky
rodič
revize
8a14f1e7bc

+ 1
- 0
.eslintrc.js Zobrazit soubor

87
         'no-eq-null': 2,
87
         'no-eq-null': 2,
88
         'no-eval': 2,
88
         'no-eval': 2,
89
         'no-extend-native': 2,
89
         'no-extend-native': 2,
90
+        'no-extra-bind': 2,
90
         'no-extra-label': 2,
91
         'no-extra-label': 2,
91
         'no-fallthrough': 2,
92
         'no-fallthrough': 2,
92
         'no-floating-decimal': 2,
93
         'no-floating-decimal': 2,

+ 1
- 1
JitsiConnection.js Zobrazit soubor

22
             // sends analytics and callstats event
22
             // sends analytics and callstats event
23
             Statistics.sendEventToAll('connection.failed.' + errType,
23
             Statistics.sendEventToAll('connection.failed.' + errType,
24
                 {label: msg});
24
                 {label: msg});
25
-        }.bind(this));
25
+        });
26
 
26
 
27
     this.addEventListener(JitsiConnectionEvents.CONNECTION_DISCONNECTED,
27
     this.addEventListener(JitsiConnectionEvents.CONNECTION_DISCONNECTED,
28
         function(msg) {
28
         function(msg) {

+ 1
- 1
JitsiMeetJS.js Zobrazit soubor

322
                     = window.performance.now();
322
                     = window.performance.now();
323
 
323
 
324
                 return Promise.reject(error);
324
                 return Promise.reject(error);
325
-            }.bind(this));
325
+            });
326
     },
326
     },
327
     /**
327
     /**
328
      * Checks if its possible to enumerate available cameras/micropones.
328
      * Checks if its possible to enumerate available cameras/micropones.

+ 1
- 1
modules/xmpp/ChatRoom.js Zobrazit soubor

207
         }.bind(this), function(error) {
207
         }.bind(this), function(error) {
208
             GlobalOnErrorHandler.callErrorHandler(error);
208
             GlobalOnErrorHandler.callErrorHandler(error);
209
             logger.error('Error getting room info: ', error);
209
             logger.error('Error getting room info: ', error);
210
-        }.bind(this));
210
+        });
211
     }
211
     }
212
 
212
 
213
 
213
 

+ 1
- 1
modules/xmpp/JingleSessionPC.js Zobrazit soubor

1359
             if (failureCb) {
1359
             if (failureCb) {
1360
                 failureCb(error);
1360
                 failureCb(error);
1361
             }
1361
             }
1362
-        }.bind(this);
1362
+        };
1363
     }
1363
     }
1364
 
1364
 
1365
     static onJingleFatalError(session, error) {
1365
     static onJingleFatalError(session, error) {

+ 1
- 1
modules/xmpp/moderator.js Zobrazit soubor

476
             logger.info('Log out OK, url: ' + logoutUrl, result);
476
             logger.info('Log out OK, url: ' + logoutUrl, result);
477
             Settings.clearSessionId();
477
             Settings.clearSessionId();
478
             callback(logoutUrl);
478
             callback(logoutUrl);
479
-        }.bind(this),
479
+        },
480
         function(error) {
480
         function(error) {
481
             const errmsg = 'Logout error';
481
             const errmsg = 'Logout error';
482
             GlobalOnErrorHandler.callErrorHandler(new Error(errmsg));
482
             GlobalOnErrorHandler.callErrorHandler(new Error(errmsg));

Načítá se…
Zrušit
Uložit