PDA

View Full Version : [4.1.1] Ext.XTemplate foreach error



Ex_Soft
19 Oct 2012, 12:25 AM
var
data = {
prop1: "prop1"
},
tpl = new Ext.XTemplate(
'<dl>',
'<tpl foreach=".">',
'<dt>{$}</dt>', // the special **`{$}`** variable contains the property name
'<dd>{.}</dd>', // within the loop, the **`{.}`** variable is set to the property value
'</tpl>',
'</dl>'
);
tpl.overwrite(Ext.getBody(), data);



TypeError: m is null
ext-all-debug.js
Line 36136


[SOLVED]


Available since: Ext 4.1.2 (http://docs.sencha.com/ext-js/4-1/#!/api/Ext.XTemplateParser)

worthlutz
4 Feb 2013, 1:53 PM
Are you saying the problem is fixed in 4.1.2?

Worth

Ex_Soft
5 Feb 2013, 12:40 AM
I've meant that this feature is available since 4.1.2