Changes between Version 4 and Version 5 of Ticket #6238


Ignore:
Timestamp:
May 26, 2008, 2:45:39 AM (12 years ago)
Author:
bill
Comment:

Haven't started working on it but I was planning to look at tree bugs over the next few days. I'll wait for you to do your stuff first though. As I wrote in the comment above I need a test case before working on this (ie, instructions on how to reproduce).

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6238 – Description

    v4 v5  
    11It seems that the following code in dijit.tree.dndSelector causes an error when a tree is rootless (at least that's my guess)....
    2                 onMouseDown: function(e){
    3                         // summary: event processor for onmousedown
    4                         // e: Event: mouse event
    5                         if(!this.current){ return; }
    62
    7                         var item = dijit.getEnclosingWidget(this.current).item
     3{{{
     4onMouseDown: function(e){
     5        // summary: event processor for onmousedown
     6        // e: Event: mouse event
     7        if(!this.current){ return; }
     8
     9        var item = dijit.getEnclosingWidget(this.current).item
    810                       
    9                         this.tree.model.getIdentity(item);
     11        this.tree.model.getIdentity(item);
     12}}}
    1013
    1114When I expand a node in the top-level of the tree, the item variable is undefined in the code above, leading to the error message "'item' has no properties".