In the following code snippet I wish to access the function parameter url1 in the success callback. Is is possible to set the scope of Ext.Ajax.request to the function scope rather than the class scope?
Ext.define('Venus.controller.LightNode', {
extend: 'Ext.app.Controller',
config: {...},
updateUIElement: function(url1) {
var me = this;
Ext.Ajax.request({
url: url1,
method: 'GET',
timeout: 2000,
scope: me,
useDefaultXhrHeader: false,
success: function(response) {
//How can I access url1 here?
}
});
},
});