956931c1182aa23149d482f644f5d8a7626f489d hiram Thu Oct 29 13:13:46 2020 -0700 no longer need the secret MAP element to trigger mouseOver display refs #21980 diff --git src/hg/hgTracks/wigTrack.c src/hg/hgTracks/wigTrack.c index 5240177..df66159 100644 --- src/hg/hgTracks/wigTrack.c +++ src/hg/hgTracks/wigTrack.c @@ -1460,52 +1460,44 @@ int i; /* could put up a 'no data' box when these items are not contiguous * e.g. when gaps interrupt the track data */ for (i = 0; i <= mouseOverIdx; ++i) { jsonWriteObjectStart(jw, NULL); jsonWriteNumber(jw, "x1", (long long)mouseOverData[i].x1); jsonWriteNumber(jw, "x2", (long long)mouseOverData[i].x2); jsonWriteDouble(jw, "v", mouseOverData[i].value); jsonWriteObjectEnd(jw); } jsonWriteListEnd(jw); jsonWriteObjectEnd(jw); fputs(jw->dy->string,trashJson); + carefulClose(&trashJson); mouseOverIdx = -1; freez(&mouseOverData); - // This is the hidden signal to the javaScript of where to pick up - // the json file - hPrintf("\n"); - carefulClose(&trashJson); if (! beenHereDoneThat ) { hPrintf("
. . . mouseDbg
. . . mouse X,Y
. . . eventRects
. . . debug message