PDA

View Full Version : JSON properties starting with @ are not working on Templates



elmasse
20 Sep 2010, 7:55 AM
If you try to use a valid JSON property that starts with @ like obj['@property1'] it doesn't work with Templates nor XTemplates.

Here is the code:

var t = new Ext.XTemplate('{"@bah"} / {bah}');
t.apply({"@bah": 1, bah: 2});

this produces: {@bah} / 2

elmasse
8 Dec 2010, 5:38 PM
Guys, any thought on this one?

Thanks,
Max