commit/galaxy-central: kanwei: trackster: don't show tile if no tile (fixes ReferenceTrack)
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/a8f476227efe/ changeset: r5435:a8f476227efe user: kanwei date: 2011-04-19 20:20:11 summary: trackster: don't show tile if no tile (fixes ReferenceTrack) affected #: 1 file (113 bytes) --- a/static/scripts/trackster.js Tue Apr 19 11:49:18 2011 -0400 +++ b/static/scripts/trackster.js Tue Apr 19 14:20:11 2011 -0400 @@ -1856,6 +1856,10 @@ // console.log( "draw_and_show_tile", resolution, tile_index, w_scale ); var tile = track.draw_tile(result, resolution, tile_index, w_scale, seq_data); track.tile_cache.set(key, tile); + // Don't show if no tile + if (tile === undefined) { + return; + } track.show_tile(tile, parent_element, tile_low, w_scale); drawn_tiles[drawn_tiles.length] = tile; }; Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket