diff --git a/javascript/tree/tree.js b/javascript/tree/tree.js index 47cff9a31..2e13fd68a 100644 --- a/javascript/tree/tree.js +++ b/javascript/tree/tree.js @@ -734,23 +734,10 @@ DraggableTreeNode.prototype = { this.aTag._onclick_before_draggable = this.aTag.onclick; this.aTag.baseClick = this.aTag.onclick; - this.aTag.onclick = this.aTagOnClick.bindAsEventListener(this.aTag); - if(this.options.onParentChanged) this.onParentChanged = this.options.onParentChanged; if(this.options.onOrderChanged) this.onOrderChanged = this.options.onOrderChanged; }, - aTagOnClick: function(event) { - // This will be bound to the tag, not the
  • . - if(this.treeNode.wasDragged) { - Event.stop(event); - return false; - } else { - this.treeNode.anchorWasClicked = true; - this.treeNode.wasDragged = false; - return this.baseClick(event); - } - }, /** * Remove all the draggy stuff */