Opened 12 years ago

Last modified 12 years ago

#7993 closed defect

dijit._Templated escape sequence for quote replacement fails with compound values — at Initial Version

Reported by: James Burke Owned by:
Priority: high Milestone: 1.3
Component: Dijit Version: 1.2.0
Keywords: Cc:
Blocked By: Blocking:

Description

I want a token that should skip the double-quote escaping. It is called i18n.foo, so I reference it in the template like so:

${!i18n.foo}

However, that does not work. The key is not found. I believe this issue is at line 44 in dijit._Templated._stringRepl():

if(key.charAt(0) == '!'){ value = _this[key.substr(1)]; }

I believe for my key above, it is trying to look for _thisi18n.foo?, but I really want _this.i18n.foo.

Perhaps switching to something like this would work:

if(key.charAt(0) == '!'){ value = dojo.getObject(key.substr(1), _this); }

Change History (0)

Note: See TracTickets for help on using tickets.