profunctional
30 Jun 2010, 4:54 PM
The following code below will not fire my event:
{
xtype: 'button',
ui: 'mask',
iconCls: 'add',
stretch: false,
handler: addJob
}
var addJob = function() {
alert('addJob');
}
But this fires just fine
{
xtype: 'button',
ui: 'mask',
iconCls: 'add',
stretch: false,
handler: function() {
alert('addJob');
}
}
{
xtype: 'button',
ui: 'mask',
iconCls: 'add',
stretch: false,
handler: addJob
}
var addJob = function() {
alert('addJob');
}
But this fires just fine
{
xtype: 'button',
ui: 'mask',
iconCls: 'add',
stretch: false,
handler: function() {
alert('addJob');
}
}