PDA

View Full Version : Checkbox click event fires twice!



Chods
28 May 2009, 5:58 AM
Hi does anyone know why my chekcbox event might be firing twice.

Here is the code:


onCheckBoxChecked = function(){
alert("checked");

}

tbar = new Ext.Toolbar({
items: [{
xtype: 'checkbox',
boxLabel: "Show Market Value Graph",
listeners: {click: onCheckBoxChecked}
}]
});
Cheers

Chods

tryanDLS
28 May 2009, 6:35 AM
Hard to guess with that small snippet of code. http://extjs.com/learn/Ext_Forum_Help#Posting_a_working_showcase

Chods
28 May 2009, 7:15 AM
That really is all that there is to it.