commit/galaxy-central: jgoecks: Circster: do not transition labels if there are no data bounds (and hence nothing to transition).
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/932585f1dd8d/ changeset: 932585f1dd8d user: jgoecks date: 2012-11-07 19:16:07 summary: Circster: do not transition labels if there are no data bounds (and hence nothing to transition). affected #: 1 file diff -r 7bd34ce09e9fd795df2088be9c13c695b00424cd -r 932585f1dd8d67c28d2c22003af0d9ae318ef947 static/scripts/viz/circster.js --- a/static/scripts/viz/circster.js +++ b/static/scripts/viz/circster.js @@ -803,6 +803,9 @@ // FIXME: (a) pull out function for getting labeled chroms? and (b) function used in transition below // is copied from UseTicks mixin, so pull out and make generally available. + // If there are no data bounds, nothing to transition. + if (this.data_bounds.length === 0) { return; } + // Transition labels to new radius bounds. var self = this, visibleChroms = _.filter(this.chroms_layout, function(c) { return c.endAngle - c.startAngle > 0.08; }), 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