commit/galaxy-central: jgoecks: Trackster: fix display of reference data.
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/0238b2b4b84e/ changeset: 0238b2b4b84e user: jgoecks date: 2011-10-03 19:34:32 summary: Trackster: fix display of reference data. affected #: 1 file (-1 bytes) --- a/static/scripts/trackster.js Mon Oct 03 11:11:16 2011 -0400 +++ b/static/scripts/trackster.js Mon Oct 03 13:34:32 2011 -0400 @@ -1157,12 +1157,13 @@ */ add_drawable: function(drawable) { DrawableCollection.prototype.add_drawable.call(this, drawable); - if (drawable.init) { drawable.init(); } + drawable.init(); this.has_changes = true; this.update_intro_div(); }, add_label_track: function (label_track) { label_track.view = this; + label_track.init(); this.label_tracks.push(label_track); }, /** @@ -2196,6 +2197,7 @@ // // Tracks with no dataset id are handled differently. + // FIXME: is this really necessary? // if (!track.dataset_id) { return; @@ -2728,6 +2730,10 @@ this.container_div.addClass( "label-track" ); }; extend(LabelTrack.prototype, Track.prototype, { + init: function() { + // Enable by default because there should always be data when drawing track. + this.enabled = true; + }, _draw: function() { var view = this.view, range = view.high - view.low, @@ -2767,6 +2773,10 @@ this.tile_cache = new Cache(CACHED_TILES_LINE); }; extend(ReferenceTrack.prototype, Drawable.prototype, TiledTrack.prototype, { + init: function() { + // Enable by default because there should always be data when drawing track. + this.enabled = true; + }, /** * Draw ReferenceTrack 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