PDA

View Full Version : Ext.History strange behaviour.



ljadrbln
18 Jul 2010, 6:04 AM
Hello all,

I'm using History component (3.2.0 version).

I have a CardPanel with a few items(id: 'tab1', id: 'tab2', ..., id: 'tab5').
I want to change items when the user clicks on a button:



function chCard(page) {
...
Ext.History.add(page)
...
}


So buttons handler is:



chCard.createDelegate(this, [2]);





Ext.History.on('change', function(token){
if(token) {
cardPanel.getLayout().setActiveItem(token);
}
});



This code works fine in Opera, FF, Safari, Chrome.. But in IE 'change' event calls twice...

Thanks

ljadrbln
19 Jul 2010, 5:54 AM
Bump

Any ideas?

Thanks