Many thanks for the prompt reply Keylan.
It seems, I'm in newbie trouble ;-) I wanna define changeListener in global context, so my main JS consists of:
Code:
Ext.BLANK_IMAGE_URL = '/ext/resources/images/default/s.gif';
Ext.ns('App', 'App.widget', 'App.store', 'App.var');
App.main = function() {
// private variables
// private functions
// public space
return {
// public properties
// public methods
init: function() {
App.var.tmpProperty = new Object();
function changeListener (obj) {
App.var.tmpProperty[obj.id] = this.getValue();
for (var record in App.var.tmpProperty) {
console.log(record + ': ' + App.var.tmpProperty[record]);
}
};
}
};
}();
I followed the beginners howto: http://www.sencha.com/learn/Tutorial..._for_Beginners
I'm initializing the app by
Code:
Ext.onReady(App.main.init, App.main)
... so all should work fine. My listener I'm calling
Code:
listeners: { change: changeListener.createDelegate(this) }
and get an error: "changeListener is not defined"
Hm, it seems the changeListener function is not visible by my further code, but can't see why ...