How can the value of variable 'updated', be modified in the code below from within callback.
Why the variable 'updated' is not getting modified in the following manner (i.e. it returns false every time function is invoked)?
updateData:function()
{
var updated = false;
var store = new Ext.getStore('MyStore');
store.load({
scope: this,
callback: function(records, operation, success) {
if(/*some condition*/){
updated=true;
}
}
});
return updated ;
}