-Roo.XComponent.on('register', function(e) { return Pman.xregister(e); });
+Roo.XComponent.on('register', function(e) { if (typeof(Pman) != 'undefined') { return Pman.xregister(e); } });
Roo.XComponent.on('buildComplete',
function() {
},
- fakeRoot : {
+ fakeRoot : new Roo.XComponent( {
modKey : '000',
module : 'Pman',
region : 'center',
isTop : true,
name : "Pman Base",
disabled : false,
- permname: ''
- },
+ permname: '' ,
+ render : function (el) { this.el = this.layout; }
+ }),
layout: false,
}
});
-
-
+ this.fakeRoot.layout = this.layout;
+ /*
Pman.register( Roo.apply(this.fakeRoot, {
layout : this.layout
} ) );
+ */
// creates all the modules ready to load..
}
- if (obj.parent === Pman) {
+ if (obj.parent === Pman || obj.parent == 'Pman') {
+ Roo.log("PARENT OF : " + obj.name + " replacing with fake");
obj.parent = Pman.fakeRoot;
}
// honour DEPRICATED permname setings..
// new code should use PART name, and matching permissions.
if (this.permname && this.permname.length) {
- if (Pman.hasPerm(this.permname, 'S')) {
- this.add(this.parent.layout, this.region);
+ if (!Pman.hasPerm(this.permname, 'S')) {
+ return;
}
- return;
+
}
- this.add(this.parent.layout, this.region);
+ this.add(this.parent.layout, this.region);
+ this.el = this.layout;
+
+
};
// map some of the standard properties..
// this will call xregister as it's the on.register handler..
Roo.XComponent.register(obj.isTop ? obj : Roo.apply(obj.module, obj));
- }
+ } ,
invertColor : function(c)
{
// read..