<commit_before>define([
	"dojo/_base/declare",
	'JBrowse/View/TrackList/Faceted'
],
function(declare,Faceted) {
	return declare('WebApollo.View.TrackList.Faceted',Faceted,
	{
		// Subclass method for track selector to remove webapollo specific tracks
		constructor: function(args) {
			//Remove the tracks from the metadata descriptions
			for(var index in args.trackMetaData.identIndex) {
				if(args.trackMetaData.identIndex[index]["track type"]=="WebApollo/View/Track/AnnotTrack" || 
				   args.trackMetaData.identIndex[index]["track type"]=="WebApollo/View/Track/AnnotSequenceTrack") {
					delete args.trackMetaData.identIndex[index];
					args.trackMetaData.facetIndexes.itemCount--;
				}
			}
		}
	});
});<commit_msg>Move the removal of the refseq/annotation track from the Faceted track selector to the renderGrid function. Now, the refseq/annotation still show up in the 'Current tracks' facet view, but this rendering should be more robust<commit_after>define([
	"dojo/_base/declare",
	'JBrowse/View/TrackList/Faceted'
],
function(declare,Faceted) {
	return declare('WebApollo.View.TrackList.Faceted',Faceted,
	{
		// Subclass method for track selector to remove webapollo specific tracks
		renderGrid:function() {
			//Remove the tracks from the metadata descriptions
			for(var index in this.trackDataStore.identIndex) {
				if(this.trackDataStore.identIndex[index]["track type"]=="WebApollo/View/Track/AnnotTrack" || 
				   this.trackDataStore.identIndex[index]["track type"]=="WebApollo/View/Track/AnnotSequenceTrack") {
					delete this.trackDataStore.identIndex[index];
					this.trackDataStore.facetIndexes.itemCount--;
				}
			}
			return this.inherited(arguments);
		}
	});
});
{'fraction_non_alphanumeric': 0.12176470588235294, 'fraction_numerical': 0.0, 'mean_word_length': 4.805460750853243, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '357742', 'n_tokens_mistral': 587, 'n_tokens_neox': 531, 'n_words': 107}