#8200 closed defect (fixed)
dtl HtmlTemplated does not generate domNode from template
Reported by: | liucougar | Owned by: | liucougar |
---|---|---|---|
Priority: | high | Milestone: | 1.3 |
Component: | DojoX DTL | Version: | 1.2.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
in dojox.dtl._HtmlTemplated.buildRendering, at the beginning, it sets srcNodeRef to be domNode
this.domNode = this.srcNodeRef;
at the end, it calls:
this._rendering =setTimeout(function(){ self.render(); }, 10);
according to dijit._Widget.buildRendering doc, after this function is called, domNode should be set to the proper node used as the root of the widget. However, what the current _HtmlTemplated is doing is not compliant to that assumption: it only renders the dom from template after a 10ms timeout, and it does not set the root of the rendered template as the new domNode
Attachments (1)
Change History (5)
Changed 12 years ago by
Attachment: | 8200.patch added |
---|
comment:2 Changed 12 years ago by
Component: | General → DojoX DTL |
---|---|
Owner: | changed from anonymous to liucougar |
Can we close this?
comment:3 Changed 12 years ago by
Milestone: | tbd → 1.3 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
sorry, forgot to close this one
comment:4 Changed 12 years ago by
Note: See
TracTickets for help on using
tickets.
proposed patch to fix this: introduced a preCreate function to setup any data required for the rendering