Skip to content

Commit

Permalink
Added ScratchPad deleteFeatureById(), getFeatureById(), removed Scrat…
Browse files Browse the repository at this point in the history
…chPad delete(), contains()
  • Loading branch information
gregg committed Nov 16, 2012
1 parent 8765b9f commit 127140e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions plugins/WebApollo/js/Store/SeqFeature/ScratchPad.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,19 @@ return declare( SeqFeatureStore,
this._calculateStats();
},

/*
delete: function( feature ) {
delete this.features[ feature.id() ];
this.deleteFeatureById[ feature.id() ];
},
*/

deleteFeatureById: function( id ) {
delete this.features[ id ];
this._calculateStats();
},

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

Expand Down

0 comments on commit 127140e

Please sign in to comment.