Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#8399 closed defect (fixed)

make dijit.Tree more friendly to subclassing

Reported by: liucougar Owned by: liucougar
Priority: high Milestone: 1.3
Component: Dijit Version: 1.2.3
Keywords: Cc:
Blocked By: Blocking:

Description

the attached patch rearranges some internal code for Tree to make it easier to subclassing it:

  1. using dojo.addClass/removeClass to manipulate class on the contentNode, instead of setting className directly (this makes it possible to attach other classes to contentNode)
  2. moved all persist related code to functions, which can be overriden in subclass
  3. a minor doc update

Attachments (1)

8399.patch (3.3 KB) - added by liucougar 10 years ago.

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by liucougar

Attachment: 8399.patch added

comment:1 Changed 10 years ago by liucougar

Resolution: fixed
Status: newclosed

(In [16306]) fixes #8399: !strict

comment:2 Changed 10 years ago by liucougar

(In [16310]) refs #8399: typo !strict

Note: See TracTickets for help on using tickets.