Переглянути джерело

Enables the jshint maximum line length check (80 chars) globally, and only overrides it in certain files.

j8
Boris Grozev 10 роки тому
джерело
коміт
bd58e6c799
39 змінених файлів з 89 додано та 35 видалено
  1. 1
    2
      .jshintrc
  2. 7
    4
      app.js
  3. 1
    0
      config.js
  4. 6
    3
      external_api.js
  5. 6
    3
      modules/API/API.js
  6. 1
    0
      modules/RTC/DataChannels.js
  7. 8
    4
      modules/RTC/RTC.js
  8. 1
    0
      modules/RTC/RTCUtils.js
  9. 1
    0
      modules/UI/UI.js
  10. 1
    0
      modules/UI/audio_levels/AudioLevels.js
  11. 2
    1
      modules/UI/etherpad/Etherpad.js
  12. 1
    0
      modules/UI/prezi/PreziPlayer.js
  13. 5
    2
      modules/UI/side_pannels/SidePanelToggler.js
  14. 2
    1
      modules/UI/side_pannels/chat/Chat.js
  15. 1
    0
      modules/UI/side_pannels/chat/Replacement.js
  16. 2
    1
      modules/UI/side_pannels/settings/SettingsMenu.js
  17. 1
    0
      modules/UI/toolbars/Toolbar.js
  18. 2
    1
      modules/UI/util/JitsiPopover.js
  19. 1
    0
      modules/UI/util/MessageHandler.js
  20. 1
    0
      modules/UI/videolayout/ConnectionIndicator.js
  21. 1
    0
      modules/UI/videolayout/LargeVideo.js
  22. 1
    0
      modules/UI/videolayout/SmallVideo.js
  23. 1
    0
      modules/UI/videolayout/VideoLayout.js
  24. 1
    0
      modules/UI/welcome_page/RoomnameGenerator.js
  25. 1
    0
      modules/connectionquality/connectionquality.js
  26. 2
    1
      modules/keyboardshortcut/keyboardshortcut.js
  27. 2
    1
      modules/statistics/LocalStatsCollector.js
  28. 1
    0
      modules/statistics/RTPStatsCollector.js
  29. 6
    3
      modules/statistics/statistics.js
  30. 2
    1
      modules/translation/translation.js
  31. 1
    0
      modules/xmpp/JingleSessionPC.js
  32. 1
    0
      modules/xmpp/SDP.js
  33. 1
    0
      modules/xmpp/SDPUtil.js
  34. 1
    0
      modules/xmpp/TraceablePeerConnection.js
  35. 8
    3
      modules/xmpp/recording.js
  36. 1
    0
      modules/xmpp/strophe.jingle.js
  37. 2
    1
      modules/xmpp/strophe.moderate.js
  38. 4
    3
      modules/xmpp/strophe.rayo.js
  39. 1
    0
      modules/xmpp/xmpp.js

+ 1
- 2
.jshintrc Переглянути файл

@@ -13,8 +13,7 @@
13 13
     "indent": 4, // {int} Number of spaces to use for indentation
14 14
     "latedef": true, // true: Require variables/functions to be defined before being used
15 15
     "newcap": true, // true: Require capitalization of all constructor functions e.g. `new F()`
16
-    //TODO: set to 80 when the code is compliant..
17
-    "maxlen": 1000, // {int} Max number of characters per line
16
+    "maxlen": 80, // {int} Max number of characters per line
18 17
     "latedef": false, //This option prohibits the use of a variable before it was defined
19 18
     "laxbreak": true //Ignore line breaks around "=", "==", "&&", etc.
20 19
 }

+ 7
- 4
app.js Переглянути файл

@@ -6,15 +6,18 @@ var APP =
6 6
     init: function () {
7 7
         this.UI = require("./modules/UI/UI");
8 8
         this.API = require("./modules/API/API");
9
-        this.connectionquality = require("./modules/connectionquality/connectionquality");
9
+        this.connectionquality =
10
+            require("./modules/connectionquality/connectionquality");
10 11
         this.statistics = require("./modules/statistics/statistics");
11 12
         this.RTC = require("./modules/RTC/RTC");
12
-        this.desktopsharing = require("./modules/desktopsharing/desktopsharing");
13
+        this.desktopsharing =
14
+            require("./modules/desktopsharing/desktopsharing");
13 15
         this.xmpp = require("./modules/xmpp/xmpp");
14
-        this.keyboardshortcut = require("./modules/keyboardshortcut/keyboardshortcut");
16
+        this.keyboardshortcut =
17
+            require("./modules/keyboardshortcut/keyboardshortcut");
15 18
         this.translation = require("./modules/translation/translation");
16 19
         this.settings = require("./modules/settings/Settings");
17
-        this.DTMF = require("./modules/DTMF/DTMF");
20
+        //this.DTMF = require("./modules/DTMF/DTMF");
18 21
         this.members = require("./modules/members/MemberList");
19 22
         this.configFetch = require("./modules/config/HttpConfigFetch");
20 23
     }

+ 1
- 0
config.js Переглянути файл

@@ -1,3 +1,4 @@
1
+/* jshint -W101 */
1 2
 var config = {
2 3
 //    configLocation: './config.json', // see ./modules/HttpConfigFetch.js
3 4
     hosts: {

+ 6
- 3
external_api.js Переглянути файл

@@ -70,7 +70,8 @@ var JitsiMeetExternalAPI = (function()
70 70
                 if (!interfaceConfigOverwrite.hasOwnProperty(key) ||
71 71
                     typeof key !== 'string')
72 72
                     continue;
73
-                this.url += "&interfaceConfig." + key + "=" + interfaceConfigOverwrite[key];
73
+                this.url += "&interfaceConfig." + key + "=" +
74
+                    interfaceConfigOverwrite[key];
74 75
             }
75 76
         }
76 77
 
@@ -180,7 +181,8 @@ var JitsiMeetExternalAPI = (function()
180 181
      * {{
181 182
      * jid: jid //the jid of the participant
182 183
      * }}
183
-     * participantLeft - receives event notifications about participant that left room.
184
+     * participantLeft - receives event notifications about the participant that
185
+     * left the room.
184 186
      * The listener will receive object with the following structure:
185 187
      * {{
186 188
      * jid: jid //the jid of the participant
@@ -225,7 +227,8 @@ var JitsiMeetExternalAPI = (function()
225 227
      * {{
226 228
      * jid: jid //the jid of the participant
227 229
      * }}
228
-     * participantLeft - receives event notifications about participant that left room.
230
+     * participantLeft - receives event notifications about participant the that
231
+     * left the room.
229 232
      * The listener will receive object with the following structure:
230 233
      * {{
231 234
      * jid: jid //the jid of the participant

+ 6
- 3
modules/API/API.js Переглянути файл

@@ -132,7 +132,8 @@ function setupListeners() {
132 132
     APP.xmpp.addListener(XMPPEvents.MUC_MEMBER_JOINED, function (from) {
133 133
         API.triggerEvent("participantJoined", {jid: from});
134 134
     });
135
-    APP.xmpp.addListener(XMPPEvents.MESSAGE_RECEIVED, function (from, nick, txt, myjid, stamp) {
135
+    APP.xmpp.addListener(XMPPEvents.MESSAGE_RECEIVED,
136
+                         function (from, nick, txt, myjid, stamp) {
136 137
         if (from != myjid)
137 138
             API.triggerEvent("incomingMessage",
138 139
                 {"from": from, "nick": nick, "message": txt, "stamp": stamp});
@@ -140,10 +141,12 @@ function setupListeners() {
140 141
     APP.xmpp.addListener(XMPPEvents.MUC_MEMBER_LEFT, function (jid) {
141 142
         API.triggerEvent("participantLeft", {jid: jid});
142 143
     });
143
-    APP.xmpp.addListener(XMPPEvents.DISPLAY_NAME_CHANGED, function (jid, newDisplayName) {
144
+    APP.xmpp.addListener(XMPPEvents.DISPLAY_NAME_CHANGED,
145
+                         function (jid, newDisplayName) {
144 146
         var name = displayName[jid];
145 147
         if(!name || name != newDisplayName) {
146
-            API.triggerEvent("displayNameChange", {jid: jid, displayname: newDisplayName});
148
+            API.triggerEvent("displayNameChange",
149
+                             {jid: jid, displayname: newDisplayName});
147 150
             displayName[jid] = newDisplayName;
148 151
         }
149 152
     });

+ 1
- 0
modules/RTC/DataChannels.js Переглянути файл

@@ -1,4 +1,5 @@
1 1
 /* global config, APP, Strophe */
2
+/* jshint -W101 */
2 3
 
3 4
 // cache datachannels to avoid garbage collection
4 5
 // https://code.google.com/p/chromium/issues/detail?id=405545

+ 8
- 4
modules/RTC/RTC.js Переглянути файл

@@ -65,9 +65,11 @@ var RTC = {
65 65
 
66 66
         eventEmitter.removeListener(eventType, listener);
67 67
     },
68
-    createLocalStream: function (stream, type, change, videoType, isMuted, isGUMStream) {
68
+    createLocalStream: function (stream, type, change, videoType,
69
+                                 isMuted, isGUMStream) {
69 70
 
70
-        var localStream =  new LocalStream(stream, type, eventEmitter, videoType, isGUMStream);
71
+        var localStream =
72
+            new LocalStream(stream, type, eventEmitter, videoType, isGUMStream);
71 73
         //in firefox we have only one stream object
72 74
         if(this.localStreams.length === 0 ||
73 75
             this.localStreams[0].getOriginalStream() != stream)
@@ -112,7 +114,8 @@ var RTC = {
112 114
             this.remoteStreams[jid] = {};
113 115
         }
114 116
         this.remoteStreams[jid][remoteStream.type]= remoteStream;
115
-        eventEmitter.emit(StreamEventTypes.EVENT_TYPE_REMOTE_CREATED, remoteStream);
117
+        eventEmitter.emit(StreamEventTypes.EVENT_TYPE_REMOTE_CREATED,
118
+                          remoteStream);
116 119
         return remoteStream;
117 120
     },
118 121
     getPCConstraints: function () {
@@ -224,7 +227,8 @@ var RTC = {
224 227
             stream = stream.videoStream;
225 228
         }
226 229
         var videoStream = this.rtcUtils.createStream(stream, true);
227
-        this.localVideo = this.createLocalStream(videoStream, "video", true, type);
230
+        this.localVideo =
231
+            this.createLocalStream(videoStream, "video", true, type);
228 232
         // Stop the stream to trigger onended event for old stream
229 233
         oldStream.stop();
230 234
 

+ 1
- 0
modules/RTC/RTCUtils.js Переглянути файл

@@ -1,6 +1,7 @@
1 1
 /* global APP, config, require, attachMediaStream, getUserMedia,
2 2
     RTCPeerConnection, webkitMediaStream, webkitURL, webkitRTCPeerConnection,
3 3
     mozRTCIceCandidate, mozRTCSessionDescription, mozRTCPeerConnection */
4
+/* jshint -W101 */
4 5
 var RTCBrowserType = require("./RTCBrowserType");
5 6
 var Resolutions = require("../../service/RTC/Resolutions");
6 7
 var AdapterJS = require("./adapter.screenshare");

+ 1
- 0
modules/UI/UI.js Переглянути файл

@@ -1,4 +1,5 @@
1 1
 /* global Strophe, APP, $, config, interfaceConfig, toastr */
2
+/* jshint -W101 */
2 3
 var UI = {};
3 4
 
4 5
 var VideoLayout = require("./videolayout/VideoLayout.js");

+ 1
- 0
modules/UI/audio_levels/AudioLevels.js Переглянути файл

@@ -1,4 +1,5 @@
1 1
 /* global APP, interfaceConfig, $, Strophe */
2
+/* jshint -W101 */
2 3
 var CanvasUtil = require("./CanvasUtils");
3 4
 
4 5
 var ASDrawContext = null;

+ 2
- 1
modules/UI/etherpad/Etherpad.js Переглянути файл

@@ -8,7 +8,8 @@ var UIUtil = require("../util/UIUtil");
8 8
 var etherpadName = null;
9 9
 var etherpadIFrame = null;
10 10
 var domain = null;
11
-var options = "?showControls=true&showChat=false&showLineNumbers=true&useMonospaceFont=false";
11
+var options = "?showControls=true&showChat=false&showLineNumbers=true" +
12
+    "&useMonospaceFont=false";
12 13
 
13 14
 
14 15
 /**

+ 1
- 0
modules/UI/prezi/PreziPlayer.js Переглянути файл

@@ -1,4 +1,5 @@
1 1
 /* global PreziPlayer */
2
+/* jshint -W101 */
2 3
 (function() {
3 4
     "use strict";
4 5
     var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };

+ 5
- 2
modules/UI/side_pannels/SidePanelToggler.js Переглянути файл

@@ -103,7 +103,8 @@ var PanelToggler = (function(my) {
103 103
         toggle(Chat,
104 104
             '#chatspace',
105 105
             function () {
106
-                // Request the focus in the nickname field or the chat input field.
106
+                // Request the focus in the nickname field or the chat input
107
+                // field.
107 108
                 if ($('#nickname').css('visibility') === 'visible') {
108 109
                     $('#nickinput').focus();
109 110
                 } else {
@@ -164,7 +165,9 @@ var PanelToggler = (function(my) {
164 165
     };
165 166
 
166 167
     my.isVisible = function() {
167
-        return (Chat.isVisible() || ContactList.isVisible() || SettingsMenu.isVisible());
168
+        return (Chat.isVisible() ||
169
+                ContactList.isVisible() ||
170
+                SettingsMenu.isVisible());
168 171
     };
169 172
 
170 173
     return my;

+ 2
- 1
modules/UI/side_pannels/chat/Chat.js Переглянути файл

@@ -203,7 +203,8 @@ var Chat = (function (my) {
203 203
                 }
204 204
                 else {
205 205
                     var message = UIUtil.escapeHtml(value);
206
-                    APP.xmpp.sendChatMessage(message, NicknameHandler.getNickname());
206
+                    APP.xmpp.sendChatMessage(message,
207
+                                             NicknameHandler.getNickname());
207 208
                 }
208 209
             }
209 210
         });

+ 1
- 0
modules/UI/side_pannels/chat/Replacement.js Переглянути файл

@@ -1,3 +1,4 @@
1
+/* jshint -W101 */
1 2
 var Smileys = require("./smileys.json");
2 3
 /**
3 4
  * Processes links and smileys in "body"

+ 2
- 1
modules/UI/side_pannels/settings/SettingsMenu.js Переглянути файл

@@ -61,7 +61,8 @@ var SettingsMenu = {
61 61
     },
62 62
 
63 63
     update: function() {
64
-        var newDisplayName = UIUtil.escapeHtml($('#setDisplayName').get(0).value);
64
+        var newDisplayName =
65
+            UIUtil.escapeHtml($('#setDisplayName').get(0).value);
65 66
         var newEmail = UIUtil.escapeHtml($('#setEmail').get(0).value);
66 67
 
67 68
         if(newDisplayName) {

+ 1
- 0
modules/UI/toolbars/Toolbar.js Переглянути файл

@@ -1,5 +1,6 @@
1 1
 /* global APP, $, buttonClick, config, lockRoom, interfaceConfig, setSharedKey,
2 2
  Util */
3
+/* jshint -W101 */
3 4
 var messageHandler = require("../util/MessageHandler");
4 5
 var BottomToolbar = require("./BottomToolbar");
5 6
 var Prezi = require("../prezi/Prezi");

+ 2
- 1
modules/UI/util/JitsiPopover.js Переглянути файл

@@ -28,7 +28,8 @@ var JitsiPopover = (function () {
28 28
         element.data("jitsi_popover", this);
29 29
         this.element = element;
30 30
         this.template = ' <div class="jitsipopover ' + this.options.skin +
31
-            '"><div class="arrow"></div><div class="jitsipopover-content"></div>' +
31
+            '"><div class="arrow"></div>' +
32
+            '<div class="jitsipopover-content"></div>' +
32 33
             '<div class="jitsiPopupmenuPadding"></div></div>';
33 34
         var self = this;
34 35
         this.element.on("mouseenter", function () {

+ 1
- 0
modules/UI/util/MessageHandler.js Переглянути файл

@@ -1,4 +1,5 @@
1 1
 /* global $, APP, jQuery, toastr, Impromptu */
2
+/* jshint -W101 */
2 3
 
3 4
 /**
4 5
  * Flag for enable/disable of the notifications.

+ 1
- 0
modules/UI/videolayout/ConnectionIndicator.js Переглянути файл

@@ -1,4 +1,5 @@
1 1
 /* global APP, $ */
2
+/* jshint -W101 */
2 3
 var JitsiPopover = require("../util/JitsiPopover");
3 4
 
4 5
 /**

+ 1
- 0
modules/UI/videolayout/LargeVideo.js Переглянути файл

@@ -1,4 +1,5 @@
1 1
 /* global $, APP, Strophe, interfaceConfig */
2
+/* jshint -W101 */
2 3
 var Avatar = require("../avatar/Avatar");
3 4
 var RTCBrowserType = require("../../RTC/RTCBrowserType");
4 5
 var UIUtil = require("../util/UIUtil");

+ 1
- 0
modules/UI/videolayout/SmallVideo.js Переглянути файл

@@ -1,4 +1,5 @@
1 1
 /* global $, APP, require */
2
+/* jshint -W101 */
2 3
 var Avatar = require("../avatar/Avatar");
3 4
 var UIUtil = require("../util/UIUtil");
4 5
 var LargeVideo = require("./LargeVideo");

+ 1
- 0
modules/UI/videolayout/VideoLayout.js Переглянути файл

@@ -1,4 +1,5 @@
1 1
 /* global config, APP, $, Strophe, require, interfaceConfig */
2
+/* jshint -W101 */
2 3
 var AudioLevels = require("../audio_levels/AudioLevels");
3 4
 var ContactList = require("../side_pannels/contactlist/ContactList");
4 5
 var MediaStreamType = require("../../../service/RTC/MediaStreamTypes");

+ 1
- 0
modules/UI/welcome_page/RoomnameGenerator.js Переглянути файл

@@ -1,3 +1,4 @@
1
+/* jshint -W101 */
1 2
 //var nouns = [
2 3
 //];
3 4
 var pluralNouns = [

+ 1
- 0
modules/connectionquality/connectionquality.js Переглянути файл

@@ -1,4 +1,5 @@
1 1
 /* global APP, require */
2
+/* jshint -W101 */
2 3
 var EventEmitter = require("events");
3 4
 var eventEmitter = new EventEmitter();
4 5
 var CQEvents = require("../../service/connectionquality/CQEvents");

+ 2
- 1
modules/keyboardshortcut/keyboardshortcut.js Переглянути файл

@@ -51,7 +51,8 @@ var KeyboardShortcut = {
51 51
                     APP.UI.clickOnVideo(keycode - "0".charCodeAt(0) + 1);
52 52
                 }
53 53
                 //esc while the smileys are visible hides them
54
-            } else if (keycode === 27 && $('#smileysContainer').is(':visible')) {
54
+            } else if (keycode === 27 &&
55
+                $('#smileysContainer').is(':visible')) {
55 56
                 APP.UI.toggleSmileys();
56 57
             }
57 58
         };

+ 2
- 1
modules/statistics/LocalStatsCollector.js Переглянути файл

@@ -66,7 +66,8 @@ function animateLevel(newLevel, lastLevel) {
66 66
  * @param interval stats refresh interval given in ms.
67 67
  * @constructor
68 68
  */
69
-function LocalStatsCollector(stream, interval, statisticsService, eventEmitter) {
69
+function LocalStatsCollector(stream, interval,
70
+                             statisticsService, eventEmitter) {
70 71
     window.AudioContext = window.AudioContext || window.webkitAudioContext;
71 72
     this.stream = stream;
72 73
     this.intervalId = null;

+ 1
- 0
modules/statistics/RTPStatsCollector.js Переглянути файл

@@ -1,5 +1,6 @@
1 1
 /* global require, ssrc2jid */
2 2
 /* jshint -W117 */
3
+/* jshint -W101 */
3 4
 var RTCBrowserType = require("../RTC/RTCBrowserType");
4 5
 
5 6
 /* Whether we support the browser we are running into for logging statistics */

+ 6
- 3
modules/statistics/statistics.js Переглянути файл

@@ -114,13 +114,16 @@ var statistics = {
114 114
     start: function () {
115 115
         APP.RTC.addStreamListener(onStreamCreated,
116 116
             StreamEventTypes.EVENT_TYPE_LOCAL_CREATED);
117
-        APP.xmpp.addListener(XMPPEvents.DISPOSE_CONFERENCE, onDisposeConference);
118
-        //FIXME: we may want to change CALL INCOMING event to onnegotiationneeded
117
+        APP.xmpp.addListener(XMPPEvents.DISPOSE_CONFERENCE,
118
+                             onDisposeConference);
119
+        //FIXME: we may want to change CALL INCOMING event to
120
+        // onnegotiationneeded
119 121
         APP.xmpp.addListener(XMPPEvents.CALL_INCOMING, function (event) {
120 122
             startRemoteStats(event.peerconnection);
121 123
 //            CallStats.init(event);
122 124
         });
123
-        APP.xmpp.addListener(XMPPEvents.PEERCONNECTION_READY, function (session) {
125
+        APP.xmpp.addListener(XMPPEvents.PEERCONNECTION_READY,
126
+            function (session) {
124 127
             CallStats.init(session);
125 128
         });
126 129
         APP.RTC.addListener(RTCEvents.AUDIO_MUTE, function (mute) {

+ 2
- 1
modules/translation/translation.js Переглянути файл

@@ -31,7 +31,8 @@ var defaultOptions = {
31 31
         var resPath = "lang/__ns__-__lng__.json";
32 32
         if(lng === languages.EN)
33 33
             resPath = "lang/__ns__.json";
34
-        var url = i18n.functions.applyReplacement(resPath, { lng: lng, ns: ns });
34
+        var url = i18n.functions.applyReplacement(resPath,
35
+                                                 { lng: lng, ns: ns });
35 36
         i18n.functions.ajax({
36 37
             url: url,
37 38
             success: function(data, status, xhr) {

+ 1
- 0
modules/xmpp/JingleSessionPC.js Переглянути файл

@@ -1,4 +1,5 @@
1 1
 /* jshint -W117 */
2
+/* jshint -W101 */
2 3
 var JingleSession = require("./JingleSession");
3 4
 var TraceablePeerConnection = require("./TraceablePeerConnection");
4 5
 var SDPDiffer = require("./SDPDiffer");

+ 1
- 0
modules/xmpp/SDP.js Переглянути файл

@@ -1,3 +1,4 @@
1
+/* jshint -W101 */
1 2
 /* jshint -W117 */
2 3
 var SDPUtil = require("./SDPUtil");
3 4
 

+ 1
- 0
modules/xmpp/SDPUtil.js Переглянути файл

@@ -1,3 +1,4 @@
1
+/* jshint -W101 */
1 2
 var SDPUtil = {
2 3
     filter_special_chars: function (text) {
3 4
         return text.replace(/[\\\/\{,\}\+]/g, "");

+ 1
- 0
modules/xmpp/TraceablePeerConnection.js Переглянути файл

@@ -1,5 +1,6 @@
1 1
 /* global $, config, mozRTCPeerConnection, RTCPeerConnection,
2 2
     webkitRTCPeerConnection, RTCSessionDescription */
3
+/* jshint -W101 */
3 4
 var RTC = require('../RTC/RTC');
4 5
 var RTCBrowserType = require("../RTC/RTCBrowserType.js");
5 6
 var XMPPEvents = require("../../service/xmpp/XMPPEvents");

+ 8
- 3
modules/xmpp/recording.js Переглянути файл

@@ -50,7 +50,8 @@ function setRecordingJirecon(state, token, callback, connection) {
50 50
             // TODO wait for an IQ with the real status, since this is
51 51
             // provisional?
52 52
             jireconRid = $(result).find('recording').attr('rid');
53
-            console.log('Recording ' + ((state === 'on') ? 'started' : 'stopped') +
53
+            console.log('Recording ' +
54
+                ((state === 'on') ? 'started' : 'stopped') +
54 55
                 '(jirecon)' + result);
55 56
             recordingEnabled = state;
56 57
             if (state === 'off'){
@@ -113,7 +114,9 @@ var Recording = {
113 114
         useJirecon = config.hosts &&
114 115
             (typeof config.hosts.jirecon != "undefined");
115 116
     },
116
-    toggleRecording: function (tokenEmptyCallback, recordingStateChangeCallback, connection) {
117
+    toggleRecording: function (tokenEmptyCallback,
118
+                               recordingStateChangeCallback,
119
+                               connection) {
117 120
         if (!Moderator.isModerator()) {
118 121
             console.log(
119 122
                     'non-focus, or conference not yet organized:' +
@@ -126,7 +129,9 @@ var Recording = {
126 129
         if (!recordingToken && !useJirecon) {
127 130
             tokenEmptyCallback(function (value) {
128 131
                 setRecordingToken(value);
129
-                self.toggleRecording(tokenEmptyCallback, recordingStateChangeCallback, connection);
132
+                self.toggleRecording(tokenEmptyCallback,
133
+                                     recordingStateChangeCallback,
134
+                                     connection);
130 135
             });
131 136
 
132 137
             return;

+ 1
- 0
modules/xmpp/strophe.jingle.js Переглянути файл

@@ -1,4 +1,5 @@
1 1
 /* jshint -W117 */
2
+/* jshint -W101 */
2 3
 
3 4
 var JingleSession = require("./JingleSessionPC");
4 5
 var XMPPEvents = require("../../service/xmpp/XMPPEvents");

+ 2
- 1
modules/xmpp/strophe.moderate.js Переглянути файл

@@ -20,7 +20,8 @@ module.exports = function (XMPP, eventEmitter) {
20 20
         },
21 21
         setMute: function (jid, mute) {
22 22
             console.info("set mute", mute);
23
-            var iqToFocus = $iq({to: this.connection.emuc.focusMucJid, type: 'set'})
23
+            var iqToFocus =
24
+                $iq({to: this.connection.emuc.focusMucJid, type: 'set'})
24 25
                 .c('mute', {
25 26
                     xmlns: 'http://jitsi.org/jitmeet/audio',
26 27
                     jid: jid

+ 4
- 3
modules/xmpp/strophe.rayo.js Переглянути файл

@@ -11,7 +11,8 @@ module.exports = function() {
11 11
                 }
12 12
 
13 13
                 this.connection.addHandler(
14
-                    this.onRayo.bind(this), this.RAYO_XMLNS, 'iq', 'set', null, null);
14
+                    this.onRayo.bind(this), this.RAYO_XMLNS, 'iq', 'set',
15
+                    null, null);
15 16
             },
16 17
             onRayo: function (iq) {
17 18
                 console.info("Rayo IQ", iq);
@@ -51,9 +52,9 @@ module.exports = function() {
51 52
                         console.info('Dial result ', result);
52 53
 
53 54
                         var resource = $(result).find('ref').attr('uri');
54
-                        this.call_resource = resource.substr('xmpp:'.length);
55
+                        self.call_resource = resource.substr('xmpp:'.length);
55 56
                         console.info(
56
-                                "Received call resource: " + this.call_resource);
57
+                            "Received call resource: " + self.call_resource);
57 58
                     },
58 59
                     function (error) {
59 60
                         console.info('Dial error ', error);

+ 1
- 0
modules/xmpp/xmpp.js Переглянути файл

@@ -1,4 +1,5 @@
1 1
 /* global $, APP, config, Strophe, Base64, $msg */
2
+/* jshint -W101 */
2 3
 var Moderator = require("./moderator");
3 4
 var EventEmitter = require("events");
4 5
 var Recording = require("./recording");

Завантаження…
Відмінити
Зберегти