I have a code the calls a javascript function inside an template, but when testing the code it produces an error below...

[W] XTemplate evaluation exception: age is not defined


The code below is a simplified version but still produces the error.


Need help.

Thanks!


PHP Code:
var team Ext.create({
     
xtype'dataview',
     
fullscreentrue,

     
store: [
         { 
name'Peter',  age26 },
         { 
name'Ray',   age21 },
         { 
name'Egon'age24 },
         { 
name'Winston'age24 }
     ],

     
itemTpl: [ '<div>{name} is {[this.callMe(age)]} years old</div>', {
         
disableFormatstrue,

                            
callMe: function( val ){
                                return 
'Test';
                            }
     } ]
 }); 
UPDATE: Stupid me... i forgot to put "values" before the variable name... so it should have been "values.age".
Please close.

Thanks!