r_honey
27 Nov 2011, 1:21 PM
The listener in the following case is not invoked:
{
xtype: 'button',
listeners: {
tap: {
fn: function() {
alert('Clicked');
}
}
}
}
But it is invoked if you leave out "fn" and directly give the function for the "tap" option.
{
xtype: 'button',
listeners: {
tap: {
fn: function() {
alert('Clicked');
}
}
}
}
But it is invoked if you leave out "fn" and directly give the function for the "tap" option.