Skip to content

Commit

Permalink
fixing travis CI warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalis-wiens committed Jun 26, 2018
1 parent 151a6a7 commit f96911c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/app/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ module.exports = function () {

// check if we have graph data
var classCount =0;
if (data.class!=undefined){
if (data.class!==undefined){
classCount=data.class.length;
}

Expand Down
10 changes: 5 additions & 5 deletions src/app/js/loadingModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = function (graph) {
d3.select("#loading-info").classed("hidden",true);
} else {
// check if it should be visible
if (visibilityStatus==true){
if (visibilityStatus===true){
d3.select("#loading-info").classed("hidden",false);
} else{
d3.select("#loading-info").classed("hidden",true);
Expand Down Expand Up @@ -238,7 +238,7 @@ module.exports = function (graph) {
}else{
// involve the o2v conveter;
ontologyMenu.append_message("Retrieving ontology from JSON URL " + filename);
requestServerTimeStampForJSON_URL(ontologyMenu.callbackLoad_JSON_FromURL,["read?json="+filename,filename])
requestServerTimeStampForJSON_URL(ontologyMenu.callbackLoad_JSON_FromURL,["read?json="+filename,filename]);
}
};

Expand Down Expand Up @@ -273,7 +273,7 @@ module.exports = function (graph) {
// involve the o2v conveter;
var encoded=encodeURIComponent(filename);
ontologyMenu.append_bulletPoint("Retrieving ontology from IRI: " + filename);
requestServerTimeStampForIRI_Converte(ontologyMenu.callbackLoad_Ontology_FromIRI,["convert?iri="+encoded,filename])
requestServerTimeStampForIRI_Converte(ontologyMenu.callbackLoad_Ontology_FromIRI,["convert?iri="+encoded,filename]);
}
};

Expand Down Expand Up @@ -320,7 +320,7 @@ module.exports = function (graph) {
//2] File Upload to OWL2VOWL Converter
// 1) check if we can get a timeStamp;
var parameterArray=[selectedFile,filename];
requestServerTimeStamp(ontologyMenu.callbackLoadFromOntology,parameterArray)
requestServerTimeStamp(ontologyMenu.callbackLoadFromOntology,parameterArray);
}
}
};
Expand Down Expand Up @@ -405,7 +405,7 @@ module.exports = function (graph) {
loadingWasSuccessFul=false;

var old=d3.select("#bulletPoint_container").node().innerHTML;
if (old.indexOf("(with warnings)")!=-1 ) { missingImportsWarning=true;}
if (old.indexOf("(with warnings)")!==-1 ) { missingImportsWarning=true;}

if (ontologyMenu.cachedOntology(ontoContent)) {
ontologyMenu.append_bulletPoint("Loading already cached ontology: " + filename);
Expand Down
22 changes: 13 additions & 9 deletions src/app/js/menu/ontologyMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ module.exports = function (graph) {

ontologyMenu.setLoadingStatusInfo=function(message){
// forward call
setLoadingStatusInfo(message)
setLoadingStatusInfo(message);
};

function getLoadingStatusOnceCallBacked(callback,parameter){
Expand Down Expand Up @@ -291,7 +291,7 @@ module.exports = function (graph) {

function callbackUpdateLoadingMessage(msg){
d3.xhr("loadingStatus", "application/text", function (error, request) {
if (request!=undefined){
if (request!==undefined){
setLoadingStatusInfo(request.responseText+ "<br>"+msg);
}else{
append_message(msg);
Expand Down Expand Up @@ -329,7 +329,7 @@ module.exports = function (graph) {

function callbackFromIRI_Success(parameter){
var local_conversionId=parameter[2];
if (local_conversionId!=conversion_sessionId){
if (local_conversionId!==conversion_sessionId){
console.log("The conversion process for file:"+parameter[1]+" has been canceled!");
ontologyMenu.conversionFinished(local_conversionId);
return;
Expand Down Expand Up @@ -369,7 +369,7 @@ module.exports = function (graph) {

function callbackFromJSON_Success(parameter){
var local_conversionId=parameter[2];
if (local_conversionId!=conversion_sessionId){
if (local_conversionId!==conversion_sessionId){
console.log("The conversion process for file:"+parameter[1]+" has been canceled!");
return;
}
Expand All @@ -380,7 +380,7 @@ module.exports = function (graph) {
var error=parameter[0];
var request=parameter[1];
var local_conversionId=parameter[2];
if (local_conversionId!=conversion_sessionId){
if (local_conversionId!==conversion_sessionId){
console.log("This thread has been canceled!!");
ontologyMenu.conversionFinished(local_conversionId);
return;
Expand All @@ -403,7 +403,7 @@ module.exports = function (graph) {
var error=parameter[0];
var request=parameter[1];
var local_conversionId=parameter[2];
if (local_conversionId!=conversion_sessionId){
if (local_conversionId!==conversion_sessionId){
console.log("The loading process of JSON_URL has been canceled!");
return;
}
Expand Down Expand Up @@ -448,7 +448,7 @@ module.exports = function (graph) {
var xhr=parameter[0];
var filename=parameter[1];
var local_threadId=parameter[2];
if (local_threadId!=conversion_sessionId){
if (local_threadId!==conversion_sessionId){
console.log("The conversion process for file:"+filename+" has been canceled!");
ontologyMenu.conversionFinished(local_threadId);
return;
Expand Down Expand Up @@ -519,8 +519,12 @@ module.exports = function (graph) {
}

ontologyMenu.showLoadingStatus=function (visible){
if (visible===true){ displayLoadingIndicators(); }
else {hideLoadingInformations()}
if (visible===true){
displayLoadingIndicators();
}
else {
hideLoadingInformations();
}
};

function displayLoadingIndicators() {
Expand Down
2 changes: 1 addition & 1 deletion src/webvowl/js/modules/statistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ module.exports = function () {
var result=false;
if (property.attributes){
attr=property.attributes();
if (attr && attr.indexOf("datatype")!=-1){
if (attr && attr.indexOf("datatype")!==-1){
result=true;
}
}
Expand Down

0 comments on commit f96911c

Please sign in to comment.