improve Sonia.History.handleChange method

This commit is contained in:
Sebastian Sdorra
2011-09-25 17:44:14 +02:00
parent 1907585c27
commit a5084c6d14
2 changed files with 16 additions and 3 deletions

View File

@@ -145,8 +145,16 @@ Sonia.History = {
} else {
el.fn.call(el.scope, params);
}
} else if (debug){
console.debug('could not find history element for ' + id);
} else if (Ext.ComponentMgr.isRegistered(id)) {
try {
main.addTabPanel(id);
} catch (e){
if (debug){
console.debug('could not handle history event: ' + e );
}
}
} else if (debug) {
console.debug('could not find xtype ' + id);
}
}