Pman.js
authorAlan Knowles <alan@akbkhome.com>
Fri, 29 Apr 2011 08:58:15 +0000 (16:58 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 29 Apr 2011 08:58:15 +0000 (16:58 +0800)
Pman.js

diff --git a/Pman.js b/Pman.js
index 6210427..cf93e6d 100644 (file)
--- a/Pman.js
+++ b/Pman.js
@@ -753,13 +753,23 @@ Pman = new Roo.Document(
         })
      * 
      */
-    register : function(obj) {
+    register : function(obj)
+    {
+        
+        // ignore registration of objects which are disabled.
+        
+        if ( )
+        {
+            
+        }
+        
         if (!obj.parent) {
             if (obj.parent === false) {
                 //console.log('skip module (no parent)' + obj.modkey);
                 return;
             }
-            
+            // this is an error condition - the parent does not exist..
+            // technically it should not happen..
             console.log(obj);
         }
         if (!obj.parent.modules) {