Pman.js
authorAlan Knowles <alan@roojs.com>
Thu, 24 Sep 2015 05:15:25 +0000 (13:15 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 24 Sep 2015 05:15:25 +0000 (13:15 +0800)
Pman.js

diff --git a/Pman.js b/Pman.js
index c3df8c2..14d5e01 100644 (file)
--- a/Pman.js
+++ b/Pman.js
@@ -236,6 +236,11 @@ Pman = new Roo.Document(
         
        
         //console.log( "t7:" + ((new Date())-stime));
+        if (!Pman.layout.getRegion('center').tabs) {
+                Roo.log("Error could not find tabs? - not adding toolbar?");
+                return;
+        }
+        
         var se = Pman.layout.getRegion('center').tabs.stripEl;
         var tbh = se.createChild( 
                 { tag: 'td', style: 'width:100%;'  });