lang.setObject("demo.addTabiFrame", function(tabContainer, href, title, closable){ if (typeof tabContainer === "string"){ tabContainer = registry.byId(tabContainer); } var tabName = "tab" + demo.basename(href,".action"), tab = registry.byId
           
        
        
               lang.setObject("demo.addTabiFrame", function(tabContainer, href, title, closable){          if (typeof tabContainer === "string"){              tabContainer = registry.byId(tabContainer);          }          var tabName = "tab" + demo.basename(href,".action"),              tab = registry.byId(tabName);          console.log(tabName);          if (typeof tab === "undefined"){              tab = new ContentPane({                  id: tabName,                  title: title,                                    closable: closable,                  executeScripts:true,                  style: "padding: 0;"              });              tab.setContent(" <iframe style='width:100%;height:100%;border:1px' border=1 src='"+href+"'></iframe>");              tabContainer.addChild(tab);          }          tabContainer.selectChild(tab);      });