Bläddra i källkod

Fix a typo in function names

dev1
Lyubomir Marinov 9 år sedan
förälder
incheckning
704f1f8063
3 ändrade filer med 6 tillägg och 5 borttagningar
  1. 2
    1
      JitsiConference.js
  2. 1
    1
      modules/RTC/RTCUtils.js
  3. 3
    3
      modules/util/GlobalOnErrorHandler.js

+ 2
- 1
JitsiConference.js Visa fil

@@ -120,7 +120,8 @@ JitsiConference.prototype.leave = function () {
120 120
     ).then(this._leaveRoomAndRemoveParticipants.bind(this))
121 121
     .catch(function (error) {
122 122
         logger.error(error);
123
-        GlobalOnErrorHandler.callUnhandlerRejectionHandler({promise: this, reason: error});
123
+        GlobalOnErrorHandler.callUnhandledRejectionHandler(
124
+            {promise: this, reason: error});
124 125
         // We are proceeding with leaving the conference because room.leave may
125 126
         // succeed.
126 127
         this._leaveRoomAndRemoveParticipants();

+ 1
- 1
modules/RTC/RTCUtils.js Visa fil

@@ -569,7 +569,7 @@ function wrapAttachMediaStream(origAttachMediaStream) {
569 569
             stream.getAudioTracks && stream.getAudioTracks().length) {
570 570
             element.setSinkId(RTCUtils.getAudioOutputDevice())
571 571
                 .catch(function (ex) {
572
-                    GlobalOnErrorHandler.callUnhandlerRejectionHandler(
572
+                    GlobalOnErrorHandler.callUnhandledRejectionHandler(
573 573
                         {promise: this, reason: ex});
574 574
                     logger.error('Failed to set audio output on element',
575 575
                         element, ex);

+ 3
- 3
modules/util/GlobalOnErrorHandler.js Visa fil

@@ -34,7 +34,7 @@ var oldOnUnhandledRejection = window.onunhandledrejection;
34 34
  * all handlers that were previously added. This handler handles rejected
35 35
  * Promises.
36 36
  */
37
-function JitsiGlobalUnhandlerRejection(event) {
37
+function JitsiGlobalUnhandledRejection(event) {
38 38
     handlers.forEach(function (handler) {
39 39
         handler(null, null, null, null, event.reason);
40 40
     });
@@ -44,7 +44,7 @@ function JitsiGlobalUnhandlerRejection(event) {
44 44
 
45 45
 //Setting the custom error handlers.
46 46
 window.onerror = JitsiGlobalErrorHandler;
47
-window.onunhandledrejection = JitsiGlobalUnhandlerRejection;
47
+window.onunhandledrejection = JitsiGlobalUnhandledRejection;
48 48
 
49 49
 
50 50
 var GlobalOnErrorHandler = {
@@ -70,7 +70,7 @@ var GlobalOnErrorHandler = {
70 70
      * @param error the error that is going to be passed to the rejection
71 71
      * handler.
72 72
      */
73
-    callUnhandlerRejectionHandler: function (error) {
73
+    callUnhandledRejectionHandler: function (error) {
74 74
         var errHandler = window.onunhandledrejection;
75 75
         if(!errHandler)
76 76
             return;

Laddar…
Avbryt
Spara