Opened 14 years ago

Last modified 11 years ago

#2585 closed enhancement

Consider making inter-strings and/or widget template loading smarter about empty template files. — at Initial Version

Reported by: James Burke Owned by: bill
Priority: high Milestone: 1.4
Component: Dijit Version: 0.4.1
Keywords: Cc:
Blocked By: Blocking:


Right now if a template (either templatePath or templateCssPath) is an empty file, intern strings will put in an empty file, but the logic in DomWidget?, seeing an empty value (equates to false) will try to load the template at runtime.

This is normally bad in an xdomain situation, where the template cannot be loaded via XHR.

Maybe it is enough to make DomWidget? smarter about the value checking of the string (if the templateString/templateCssString property is defined but an empty string, do not try to load the template via XHR).

This is a protection against odd development cases, so I see it more as an enhancement.

Change History (0)

Note: See TracTickets for help on using tickets.