Fixes warnings, sets up .jshintrc and ignores files in .jshintignore.
This commit is contained in:
parent
8cee6fe20d
commit
e84762a82b
|
@ -1,6 +1,32 @@
|
|||
node_modules
|
||||
libs
|
||||
replacement.js
|
||||
prezi.js
|
||||
muc.js
|
||||
app.js
|
||||
lib-jitsi-meet.js
|
||||
doc
|
||||
|
||||
|
||||
modules/xmpp/xmpp.js
|
||||
modules/xmpp/strophe.jingle.js
|
||||
modules/xmpp/TraceablePeerConnection.js
|
||||
modules/xmpp/SDPUtil.js
|
||||
modules/xmpp/SDP.js
|
||||
modules/xmpp/strophe.emuc.js
|
||||
modules/xmpp/JingleSessionPC.js
|
||||
modules/xmpp/LocalSSRCReplacement.js
|
||||
modules/xmpp/ChatRoom.js
|
||||
modules/xmpp/ChatRoom.js
|
||||
modules/statistics/RTPStatsCollector.js
|
||||
modules/statistics/LocalStatsCollector.js
|
||||
modules/settings/Settings.js
|
||||
modules/connectionquality/connectionquality.js
|
||||
modules/RTC/adapter.screenshare.js
|
||||
modules/statistics/statistics.js
|
||||
modules/RTC/RTC.js
|
||||
modules/RTC/RTCUtils.js
|
||||
modules/RTC/DataChannels.js
|
||||
modules/RTC/JitsiLocalTrack.js
|
||||
modules/RTC/JitsiRemoteTrack.js
|
||||
modules/RTC/JitsiTrack.js
|
||||
JitsiParticipant.js
|
||||
JitsiMeetJS.js
|
||||
JitsiConnection.js
|
||||
JitsiConference.js
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
// Refer to http://jshint.com/docs/options/ for an exhaustive list of options
|
||||
"asi": false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
|
||||
"expr": true, // true: Tolerate `ExpressionStatement` as Programs
|
||||
"loopfunc": true, // true: Tolerate functions being defined in loops
|
||||
|
@ -12,5 +13,7 @@
|
|||
"indent": 4, // {int} Number of spaces to use for indentation
|
||||
"latedef": true, // true: Require variables/functions to be defined before being used
|
||||
"newcap": true, // true: Require capitalization of all constructor functions e.g. `new F()`
|
||||
"maxlen": 80 // {int} Max number of characters per line
|
||||
}
|
||||
"maxlen": 80, // {int} Max number of characters per line
|
||||
"latedef": false, //This option prohibits the use of a variable before it was defined
|
||||
"laxbreak": true //Ignore line breaks around "=", "==", "&&", etc.
|
||||
}
|
||||
|
|
|
@ -8,7 +8,8 @@ var JitsiConferenceErrors = {
|
|||
*/
|
||||
PASSWORD_REQUIRED: "conference.passwordRequired",
|
||||
/**
|
||||
* Indicates that a connection error occurred when trying to join a conference.
|
||||
* Indicates that a connection error occurred when trying to join a
|
||||
* conference.
|
||||
*/
|
||||
CONNECTION_ERROR: "conference.connectionError",
|
||||
/**
|
||||
|
|
|
@ -56,7 +56,8 @@ var JitsiConferenceEvents = {
|
|||
*/
|
||||
TRACK_AUDIO_LEVEL_CHANGED: "conference.audioLevelsChanged",
|
||||
/**
|
||||
* Indicates that the connection to the conference has been interrupted for some reason.
|
||||
* Indicates that the connection to the conference has been interrupted
|
||||
* for some reason.
|
||||
*/
|
||||
CONNECTION_INTERRUPTED: "conference.connecionInterrupted",
|
||||
/**
|
||||
|
|
|
@ -8,7 +8,8 @@ var JitsiConnectionErrors = {
|
|||
*/
|
||||
PASSWORD_REQUIRED: "connection.passwordRequired",
|
||||
/**
|
||||
* Indicates that a connection error occurred when trying to join a conference.
|
||||
* Indicates that a connection error occurred when trying to join a
|
||||
* conference.
|
||||
*/
|
||||
CONNECTION_ERROR: "connection.connectionError",
|
||||
/**
|
||||
|
|
|
@ -22,7 +22,8 @@ module.exports = function (XMPP, eventEmitter) {
|
|||
},
|
||||
setMute: function (jid, mute) {
|
||||
logger.info("set mute", mute);
|
||||
var iqToFocus = $iq({to: this.connection.emuc.focusMucJid, type: 'set'})
|
||||
var iqToFocus = $iq(
|
||||
{to: this.connection.emuc.focusMucJid, type: 'set'})
|
||||
.c('mute', {
|
||||
xmlns: 'http://jitsi.org/jitmeet/audio',
|
||||
jid: jid
|
||||
|
@ -59,4 +60,4 @@ module.exports = function (XMPP, eventEmitter) {
|
|||
this.connection.emuc.kick(jid);
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
|
@ -13,7 +13,8 @@ module.exports = function() {
|
|||
}
|
||||
|
||||
this.connection.addHandler(
|
||||
this.onRayo.bind(this), this.RAYO_XMLNS, 'iq', 'set', null, null);
|
||||
this.onRayo.bind(this),
|
||||
this.RAYO_XMLNS, 'iq', 'set', null, null);
|
||||
},
|
||||
onRayo: function (iq) {
|
||||
logger.info("Rayo IQ", iq);
|
||||
|
@ -55,7 +56,7 @@ module.exports = function() {
|
|||
var resource = $(result).find('ref').attr('uri');
|
||||
this.call_resource = resource.substr('xmpp:'.length);
|
||||
logger.info(
|
||||
"Received call resource: " + this.call_resource);
|
||||
"Received call resource: " + this.call_resource);
|
||||
},
|
||||
function (error) {
|
||||
logger.info('Dial error ', error);
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
/* global Strophe */
|
||||
/**
|
||||
* Strophe logger implementation. Logs from level WARN and above.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue