Ticket #5764 (closed defect: fixed)

Opened 10 months ago

Last modified 10 months ago

Dijit form widgets can fire _layoutHack method after they have been destroyed

Reported by: sorvell Owned by: sorvell
Priority: normal Milestone:
Component: General Version: 1.0
Severity: normal Keywords:
Cc:

Description

Since the code in the _layoutHack method is called in a setTimeout, it can fire after the Dijit has been destroyed. Other than being generally bad, this causes specific problems since the delayed function references the dijit's domNode.

Change History

Changed 10 months ago by sorvell

  • status changed from new to closed
  • resolution set to fixed

(In [12282]) fixes #5764 by storing a handle to the setTimeout function created in _layoutHack and clearing this handle in destroy.

Note: See TracTickets for help on using tickets.