Ticket #7799 (closed defect: worksforme)
Tree : DnD and Webkit
| Reported by: | rdunklau | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | tbd |
| Component: | Dijit | Version: | 1.2beta |
| Severity: | normal | Keywords: | |
| Cc: |
Description
It seems that the tree drag'n drop doesn't work anymore (see dijit/tests/tree/test_tree_dnd.html and try to drag a node from the bottom left tree to the bottom right one).
Moreover, it seems that dragging a tree node over another tree causes an error in webkit-based browser (noticed both in Chrome and Safari). This error seems to appear in the _changeState method, which is called with an undefined value for the "type" parameter.
_changeState: function(type, newState){
newState: String: new state
var prefix = "dojoDnd" + type;
var state = type.toLowerCase() + "State"; <----- should test wether type is a string
dojo.replaceClass(this.node, prefix + newState, prefix + this[state]);
dojo.removeClass(this.node, prefix + this[state]);
dojo.addClass(this.node, prefix + newState);
this[state] = newState;
},
Attachments
Change History
Note: See
TracTickets for help on using
tickets.