From 06148cd22368bafe7829a673057c5396d5f4506f Mon Sep 17 00:00:00 2001 From: Gregg Helt Date: Mon, 24 Jan 2011 09:51:23 -0800 Subject: [PATCH] Paring down code -- var newAnnot no longer needed --- js/DraggableFeatureTrack.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/DraggableFeatureTrack.js b/js/DraggableFeatureTrack.js index 14c3953d45..1a9e6f73f4 100644 --- a/js/DraggableFeatureTrack.js +++ b/js/DraggableFeatureTrack.js @@ -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;