Skip to content

Commit

Permalink
Merge pull request #27 from joejimbo/master
Browse files Browse the repository at this point in the history
Check for boolean values of LABEL/BUMP
  • Loading branch information
dasmoth committed Sep 20, 2012
2 parents d28dfe1 + 010192c commit 69e07be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/feature-tier.js
Original file line number Diff line number Diff line change
Expand Up @@ -1496,10 +1496,10 @@ function glyphForFeature(feature, y, style, tier, forceHeight)
glyph.dalliance_feature = feature;
}
var dg = new DGlyph(glyph, min, max, requiredHeight);
if (style.LABEL && (feature.label || feature.id)) {
if (style.LABEL == 'yes' && (feature.label || feature.id)) {
dg.label = feature.label || feature.id;
}
if (style.BUMP) {
if (style.BUMP == 'yes') {
dg.bump = true;
}
dg.strand = feature.orientation || '0';
Expand Down

0 comments on commit 69e07be

Please sign in to comment.