Opened 16 years ago

Last modified 9 years ago

#1983 closed feature

widgetsInTemplate does not process new widgets created dynamically — at Initial Version

Reported by: [email protected] Owned by: anonymous
Priority: low Milestone: 1.0
Component: Dijit Version: 0.4
Keywords: widgetsInTemplate sub widgets Cc:
Blocked By: Blocking:


Sub widgets that are wrapped by, for instance, accordion panes or split panes, aren't processed. So dojoAttachPoint or dojoAttachEvent are ignored for those sub widgets.

I fixed by setting an attribute on nodes (watermark) and then check for the mark. If there is no mark, then its a wrapper widget (or something like that), so lets process its children.

On DomWidget?.js near line 586 I made:

  subnodes[i].setAttribute('_isSubWidget', true);
subnodes[i].setAttribute('_watermark', true);

and near line 618 change to:

if(cwidget.extraArgs['_watermark'] &&
   (cwidget._processedSubWidgets || !cwidget.extraArgs['_issubwidget'])){ continue; }

Change History (0)

Note: See TracTickets for help on using tickets.