Skip to content

Commit

Permalink
Paring down code -- var newAnnot no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
GreggHelt2 committed Jan 24, 2011
1 parent 19fc63b commit 06148cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/DraggableFeatureTrack.js
Expand Up @@ -202,15 +202,15 @@ DraggableFeatureTrack.prototype.makeDraggableAndDroppable = function(elem) {
DraggableFeatureTrack.prototype.setDragging(false);
// Clone the dragged feature
// GAH not sure if newAnnot is really needed (think some of it's functionality was replaced by list of selected elems?)
var newAnnot=$(ui.draggable).clone();
// var newAnnot=$(ui.draggable).clone();
// console.log("makeDroppable: feat = " + elem.feature + ", currentSelection = " + DraggableFeatureTrack.prototype.getCurrentSelection()); // DEL
// Change its class to the appropriate annot class
DraggableFeatureTrack.prototype.setAnnotClassNameForFeature(newAnnot);
// DraggableFeatureTrack.prototype.setAnnotClassNameForFeature(newAnnot);

// Set vertical position of dropped item (left position is based on dragged feature)
newAnnot.css({"top": 0});
// newAnnot.css({"top": 0});
// Restore border of annot to its default (don't want selection border)
newAnnot.css({"border": null});
// newAnnot.css({"border": null});

var track = this.track;
var features = this.track.features;
Expand Down

0 comments on commit 06148cd

Please sign in to comment.