Skip to content

Commit

Permalink
Fixing more WebApollo/JBrowse1.7 merge bugs: deletion now working
Browse files Browse the repository at this point in the history
  • Loading branch information
gregg committed Nov 16, 2012
1 parent c645e2b commit 6f75729
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/WebApollo/js/View/Track/AnnotTrack.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ var AnnotTrack = declare( DraggableFeatureTrack,
var feat = JSONUtils.createJBrowseFeature( responseFeatures[i] );
var id = responseFeatures[i].uniquename;
// if (this.features.featIdMap[id] == null) {
if (! this.store.contains(id)) {
if (! this.store.getFeatureById(id)) {
// note that proper handling of subfeatures requires annotation trackData.json resource to
// set sublistIndex one past last feature array index used by other fields
// (currently Annotations always have 6 fields (0-5), so sublistIndex = 6
Expand All @@ -309,7 +309,7 @@ var AnnotTrack = declare( DraggableFeatureTrack,
deleteFeatures: function(responseFeatures) {
for (var i = 0; i < responseFeatures.length; ++i) {
var id_to_delete = responseFeatures[i].uniquename;
this.store.delete(id_to_delete);
this.store.deleteFeatureById(id_to_delete);
}
},

Expand Down

0 comments on commit 6f75729

Please sign in to comment.