Skip to content

Commit

Permalink
Support BAMCombinations
Browse files Browse the repository at this point in the history
  • Loading branch information
cmdcolin committed Oct 1, 2018
1 parent 66beaeb commit 4206dff
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/JBrowse/Store/SeqFeature/BAMCombination.js
Expand Up @@ -2,14 +2,12 @@ define([
'dojo/_base/declare',
'dojo/_base/array',
'JBrowse/Store/SeqFeature/CombinationBase',
'JBrowse/Model/SimpleFeature'
],

function(
declare,
array,
CombinationBaseStore,
BAMFeature
CombinationBaseStore
) {

return declare([CombinationBaseStore], {
Expand All @@ -24,7 +22,7 @@ define([

toSpan: function(features, query) {
return features.map(function(feat) {
return new BAMFeature( feat.feature ? feat.feature : feat )
return Object.assign(Object.create(feat), feat)
});
},

Expand Down

0 comments on commit 4206dff

Please sign in to comment.