1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/c3acc8649078/ changeset: c3acc8649078 user: jgoecks date: 2012-12-10 21:47:05 summary: Trackster: use underscore methods to simplify tile search/iteration and remove old debugging statement. affected #: 1 file diff -r 3ee0e5ee1b375c0fd580c26a93850f2fa44f93f0 -r c3acc86490780d1949c4a3abf1263ace7c5ece6c static/scripts/viz/trackster/tracks.js --- a/static/scripts/viz/trackster/tracks.js +++ b/static/scripts/viz/trackster/tracks.js @@ -2854,21 +2854,17 @@ // // If some tiles have icons, set padding of tiles without icons so features and rows align. // - var icons_present = false; - for (var tile_index = 0; tile_index < tiles.length; tile_index++) { - if (tiles[tile_index].has_icons) { - icons_present = true; - break; - } - } + var icons_present = _.find(tiles, function(tile) { + return tile.has_icons; + }); + if (icons_present) { - for (var tile_index = 0; tile_index < tiles.length; tile_index++) { - tile = tiles[tile_index]; + _.each(tiles, function(tile) { if (!tile.has_icons) { // Need to align with other tile(s) that have icons. tile.html_elt.css("padding-top", ERROR_PADDING); } - } + }); } }, /** @@ -4045,7 +4041,6 @@ var painter = new (this.painter)(filtered, tile_low, tile_high, this.prefs, mode, filter_alpha_scaler, filter_height_scaler, ref_seq); var feature_mapper = null; - // console.log(( tile_low - this.view.low ) * w_scale, tile_index, w_scale); ctx.fillStyle = this.prefs.block_color; ctx.font = ctx.canvas.manager.default_font; ctx.textAlign = "right"; 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.