Roo/LayoutRegion.js
authorAlan Knowles <alan@roojs.com>
Fri, 19 Jun 2015 08:26:37 +0000 (16:26 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 19 Jun 2015 08:26:37 +0000 (16:26 +0800)
Roo/LayoutRegion.js

index 5dd3ed3..c0c55a8 100644 (file)
@@ -442,8 +442,10 @@ Roo.extend(Roo.LayoutRegion, Roo.BasicLayoutRegion, {
      * @param {Number/String/ContentPanel} panelId The panel's index, id or the panel itself
      * @return {Roo.ContentPanel} The shown panel, or null if a panel could not be found from panelId
      */
-    showPanel : function(panel){
-        if(panel = this.getPanel(panel)){
+    showPanel : function(panel)
+    {
+        var panel = this.getPanel(panel);
+        if(panel){
             if(this.tabs){
                 var tab = this.tabs.getTab(panel.getEl().id);
                 if(tab.isHidden()){