Skip to content

Commit

Permalink
fixed travis warnigns for type comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalis-wiens committed Jul 3, 2017
1 parent 3bc1941 commit b74d5eb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/app/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ module.exports = function () {
d3.select("#logo").classed("hidden", true);
} else {
d3.select("#logo").classed("hidden", false);
if (agentVersion==12) {
if (agentVersion===12) {
d3.select("#browserCheck").classed("hidden", false);
d3.select("#killWarning").classed("hidden", false);
} else {
Expand Down Expand Up @@ -184,7 +184,7 @@ module.exports = function () {
navigationMenu.updateVisibilityStatus();
// update also the padding options of loading and the logo positions;
var warningDiv=d3.select("#browserCheck");
if (warningDiv.classed("hidden")==false ) {
if (warningDiv.classed("hidden")===false ) {
var offset=10+warningDiv.node().getBoundingClientRect().height;
d3.select("#logo").style("padding", offset+"px 10px");
}else {
Expand Down
2 changes: 1 addition & 1 deletion src/app/js/menu/searchMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ module.exports = function (graph) {
var allSame=true;
// using simple for-loop since id list should be small
for (var x=0;x<correspondingIdList.length;x++){
if (correspondingIdList[x]!=firstVal){
if (correspondingIdList[x]!==firstVal){
allSame=false;
}
}
Expand Down
3 changes: 0 additions & 3 deletions src/webvowl/js/elements/drawTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,6 @@ module.exports = (function () {
.attr("r", radius + 15);
haloGroupElement.attr("animationRunning",true);

console.log("added halo element with animation" +haloGroupElement.attr("animationRunning"));



haloGroupElement.node().addEventListener("webkitAnimationEnd", function(){
var test=haloGroupElement.selectAll(".searchResultA");
Expand Down
7 changes: 5 additions & 2 deletions src/webvowl/js/elements/properties/BaseProperty.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,11 @@ module.exports = (function () {
var haloGr=that.getHalos();
var haloEls= haloGr.selectAll(".searchResultA");
animRuns=haloGr.attr("animationRunning");
// parse this to a boolean value
animRuns= (animRuns == 'true');

if (typeof animRuns !== "boolean") {
// parse this to a boolean value
animRuns = (animRuns === 'true');
}
if (animRuns===false) {
haloEls.classed("searchResultA", false);
haloEls.classed("searchResultB", true);
Expand Down
1 change: 0 additions & 1 deletion src/webvowl/js/graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,6 @@ module.exports = function (graphContainerSelector) {
var cp=getWorldPosFromScreen(cx,cy,graphTranslation,zoomFactor);
var sP=[cp.x,cp.y,graph.options().height()/zoomFactor];

var zoomLevel=Math.max(defaultZoom+0.5*defaultZoom,defaultTargetZoom);
var zoomLevel=Math.max(defaultZoom+0.5*defaultZoom,defaultTargetZoom);
var eP=[target.x,target.y,graph.options().height()/zoomLevel];
var pos_intp=d3.interpolateZoom(sP,eP);
Expand Down

0 comments on commit b74d5eb

Please sign in to comment.