Skip to content

Commit

Permalink
added helper coverage class
Browse files Browse the repository at this point in the history
  • Loading branch information
bhofmei committed Nov 10, 2016
1 parent 3e966f7 commit 46a9272
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions js/Model/NamedCoverageFeature.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/**
* Based on JBrowse CoverageFeature but includes name attribute
*/
define( ['JBrowse/Util'],
function( Util ) {

return Util.fastDeclare(
{
get: function(f) {
return this[f];
},
tags: function() { return [ 'start', 'end', 'score' ]; },
score: 0,
constructor: function( args ) {
this.start = args.start;
this.end = args.end;
this.score = args.score;
this.name = args.name;
}
});
});

0 comments on commit 46a9272

Please sign in to comment.