Skip to content

Commit

Permalink
travis type comparison warning fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalis-wiens committed Jul 3, 2017
1 parent b74d5eb commit 975a9fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/webvowl/js/elements/nodes/BaseNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ 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

0 comments on commit 975a9fb

Please sign in to comment.