Skip to content

Commit

Permalink
Added contains(id) method to return feature given a feature id.
Browse files Browse the repository at this point in the history
  • Loading branch information
gregg committed Nov 15, 2012
1 parent 78425f0 commit 0361ca0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/WebApollo/js/Store/SeqFeature/ScratchPad.js
Expand Up @@ -20,6 +20,11 @@ return declare( SeqFeatureStore,
this._calculateStats();
},

/* if feature with given id is present in store, return it. Otherwise return null */
contains: function( id ) {
return this.features[ id ];
},

_calculateStats: function() {
var minStart = Infinity;
var maxEnd = -Infinity;
Expand Down

0 comments on commit 0361ca0

Please sign in to comment.