Ticket #5684 (closed defect: duplicate)

Opened 10 months ago

Last modified 7 months ago

[dijit] _Widget .destroy() enhancement

Reported by: dante Owned by: dante
Priority: normal Milestone: 1.2
Component: Dijit Version: 1.0
Severity: normal Keywords:
Cc:

Description (last modified by dante) (diff)

It would be nice if you could somehow optionally _not_ delete the srcNodeRef/domNode used by dijit._Widget when calling destroy()

my use case is behavioral widgets you can enable/disable and cleanup effectively, without destroying the content.

eg: var n = new dojox.widget.FishseyeLite?({},"foo"); setTimeout(dojo.hitch(n,"destroy"),10000);

it should fisheye for 10 seconds, and leave the node id="foo" alone (other than having it's this.connect()'s removed, etc)

Change History

Changed 10 months ago by bill

Agreed. destroyRendering() should probably only remove generated DOM nodes, not the original srcNodeRef. Perhaps just checking if this.domNode == this.srcNodeRef (and remove this.domNode only if the condition is false) is enough...

Changed 7 months ago by dante

  • status changed from new to assigned
  • owner set to dante
  • description modified (diff)

Changed 7 months ago by dante

  • status changed from assigned to closed
  • resolution set to duplicate

see #6668 - it's more precise.

Note: See TracTickets for help on using tickets.