Pman.js
authorAlan Knowles <alan@akbkhome.com>
Sun, 1 Apr 2012 06:41:18 +0000 (14:41 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sun, 1 Apr 2012 06:41:18 +0000 (14:41 +0800)
Pman.js

diff --git a/Pman.js b/Pman.js
index 8ed3dcf..075b8dd 100644 (file)
--- a/Pman.js
+++ b/Pman.js
@@ -912,12 +912,11 @@ Pman = new Roo.Document(
                 if (Pman.hasPerm(this.permname, 'S')) {
                    this.module.add(this.parent.layout, this.region);    
                 }
-                } else {
-                    this.module.add(this.parent.layout, this.region);    
-                } 
+                return;
             }
-             
-        }
+            this.module.add(this.parent.layout, this.region);    
+              
+        };
         
         
         Roo.log("CALLING XComponent register with : " + obj.name);