m.blume
21 Jul 2010, 6:14 AM
After a component has changed the history I would like to access the history from another component. Is it right that you get the old value from history?
If you add the log in history.js you will see that after adding the token you can't read the current token by Ext.History.getToken
listeners: {
'tabchange': function(tabPanel, tab){
// Ignore tab1 since it is a separate tab panel and we're managing history for it also.
// We'll use its handler instead in that case so we don't get duplicate nav events for sub tabs.
if(tab.id != 'tab1'){
Ext.History.add(tabPanel.id + tokenDelimiter + tab.id);
}
console.log(tabPanel.id + tokenDelimiter + tab.id, Ext.History.getToken());
}
}
Thanks in advance.
If you add the log in history.js you will see that after adding the token you can't read the current token by Ext.History.getToken
listeners: {
'tabchange': function(tabPanel, tab){
// Ignore tab1 since it is a separate tab panel and we're managing history for it also.
// We'll use its handler instead in that case so we don't get duplicate nav events for sub tabs.
if(tab.id != 'tab1'){
Ext.History.add(tabPanel.id + tokenDelimiter + tab.id);
}
console.log(tabPanel.id + tokenDelimiter + tab.id, Ext.History.getToken());
}
}
Thanks in advance.