Pman.js
authorAlan Knowles <alan@roojs.com>
Thu, 6 Oct 2011 05:26:31 +0000 (13:26 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 6 Oct 2011 05:26:31 +0000 (13:26 +0800)
Pman.js

diff --git a/Pman.js b/Pman.js
index 025aabb..8c2dc95 100644 (file)
--- a/Pman.js
+++ b/Pman.js
@@ -797,14 +797,22 @@ Pman = new Roo.Document(
     {
         
         // ignore registration of objects which are disabled.
+        // global supplied by master.html
         appDisabled = typeof(appDisabled) == 'undefined' ? [] : appDisabled;
         
-        if ((typeof(obj.moduleName) != 'undefined')
-                && appDisabled.indexOf(obj.moduleName) > -1)
-        {
-            return;
+        if (typeof(obj.moduleName) != 'undefined')  {
+            if (appDisabled.indexOf(obj.moduleName) > -1) {
+                return;
+            }
+            
+            
+            
         }
         
+        
+        
+        
+        
         if (!obj.parent) {
             if (obj.parent === false) {
                 //console.log('skip module (no parent)' + obj.modkey);