Skip to content

Commit

Permalink
remove change score range menu if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
bhofmei committed Nov 21, 2016
1 parent 68b2205 commit 6b20210
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/View/Track/NucleotideDensity.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function(


getConfigColor: function(seqCtx){
return ColorHandler.getConfigColor(seqCtx, this.config.contexts, this.config.colors, this.randomColors);
return ColorHandler.getConfigColor(seqCtx, this.config.context, this.config.colors, this.randomColors);
},

getConfForFeature: function(opt, feature){
Expand Down Expand Up @@ -185,6 +185,10 @@ function(
_trackMenuOptions: function() {
var track = this;
var options = this.inherited(arguments);
// remove trackScoreChange menu option if included
var lastOpt = options[options.length-1];
if(lastOpt.hasOwnProperty('iconClass') && lastOpt.iconClass === 'trackScoreIcon')
options.pop();
options.push(
{ type: 'dijit/MenuSeparator' },
{
Expand Down

0 comments on commit 6b20210

Please sign in to comment.