minor cleanup to timeline javascript

This commit is contained in:
Tim Buckley 2015-07-29 15:03:45 -06:00
parent 79959e76dc
commit 40638ca104
1 changed files with 3 additions and 5 deletions

View File

@ -154,8 +154,6 @@ window.addEventListener('load', function() {
url += ".gz"; url += ".gz";
} }
console.log("url is", url);
loadTimeline(url, { loadTimeline(url, {
container: $("#timeline-container")[0], container: $("#timeline-container")[0],
onClick: function(d) { onClick: function(d) {
@ -172,7 +170,7 @@ window.addEventListener('load', function() {
// remove selection on 2nd click - don't continue // remove selection on 2nd click - don't continue
selectedItem = null; selectedItem = null;
selectedValue = null; selectedValue = null;
hideDetails() hideDetails();
return; return;
} }
@ -192,7 +190,7 @@ window.addEventListener('load', function() {
}, },
onMouseover: function(d) { onMouseover: function(d) {
if (selectedItem != null) { if (selectedItem !== null) {
return; return;
} }
@ -207,7 +205,7 @@ window.addEventListener('load', function() {
}, },
onMouseout: function(d) { onMouseout: function(d) {
if (selectedItem != null) { if (selectedItem !== null) {
return; return;
} }