Skip to content
Browse files

BUGFIX #4140 When clicking a tree node that was just dragged, "Stack …

…overflow" error would be given in IE. Firebug would report "Too much recursion" (from r95973)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@102323 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 0375eea commit bf57bee1f0a60ed28e823c27148c746bf6c476d8 @chillu chillu committed
Showing with 0 additions and 13 deletions.
  1. +0 −13 javascript/tree/tree.js
View
13 javascript/tree/tree.js
@@ -724,23 +724,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 <a> tag, not the <li>.
- 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
*/

0 comments on commit bf57bee

Please sign in to comment.
Something went wrong with that request. Please try again.