Skip to content

Commit

Permalink
Switch back to normal score when not using summary view. See #518
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Feb 6, 2015
1 parent 149d86c commit f76718f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/JBrowse/View/Track/Wiggle/XYPlot.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ var XYPlot = declare( [WiggleBase, YScaleMixin],
var store = f.source;
var fRect = featureRects[i];
var jEnd = fRect.r;
var score = f.get(scoreType);
var score = f.get(scoreType)||f.get('score');
for( var j = Math.round(fRect.l); j < jEnd; j++ ) {
if ( pixelValues[j] && pixelValues[j]['lastUsedStore'] == store ) {
/* Note: if the feature is from a different store, the condition should fail,
Expand Down
2 changes: 1 addition & 1 deletion src/JBrowse/View/Track/WiggleBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ return declare( [BlockBasedTrack,ExportMixin, DetailStatsMixin ], {
var store = f.source;
var fRect = featureRects[i];
var jEnd = fRect.r;
var score = f.get(scoreType);
var score = f.get(scoreType)||f.get('score');
for( var j = Math.round(fRect.l); j < jEnd; j++ ) {
if ( pixelValues[j] && pixelValues[j]['lastUsedStore'] == store ) {
/* Note: if the feature is from a different store, the condition should fail,
Expand Down

0 comments on commit f76718f

Please sign in to comment.