fix non working history

This commit is contained in:
Sebastian Sdorra
2011-11-22 19:42:26 +01:00
parent 5fa2bf38be
commit 4a3607dfcd

View File

@@ -37,15 +37,13 @@ Sonia.History = {
recentlyChanged: [],
add: function(token){
if (this.initialized){
if (token != Ext.History.getToken()){
if (this.isInvokeable(this.recentlyChanged, token)){
if ( debug ){
console.debug('add history element ' + token);
}
this.recentlyAdded.push(token);
Ext.History.add(token, true);
if (token != Ext.History.getToken()){
if (this.isInvokeable(this.recentlyChanged, token)){
if ( debug ){
console.debug('add history element ' + token);
}
this.recentlyAdded.push(token);
Ext.History.add(token, true);
}
}
},