*/
showPanel : function (pan)
{
- if(this.transition){
+ if(this.transition || typeof(pan) == 'undefined'){
Roo.log("waiting for the transitionend");
return;
}
pan = this.getPanelByName(pan);
}
+ var cur = this.getActivePanel();
+
+ if(!pan || !cur){
+ return;
+ }
+
if (pan.tabId == this.getActivePanel().tabId) {
return true;
}
- var cur = this.getActivePanel();
-
if (false === cur.fireEvent('beforedeactivate')) {
return false;
}