Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getInstance:function(module, xid){
var m=this;
if(!xid && module){
if(module['xui.Profile'] && module.moduleClass && module.moduleXid){
xid = module.moduleXid;
module = module.moduleClass;
}else{
xid = module;
module = null;
}
}
if(module){
m=xui.SC.get(module);
if(!m||!m['xui.Module'])return;
}else{
m=this;
}
var c=m._cache;
if(xid){
for(var i in m._cache)
_ini:function(properties, events, host){
var self=this,
c=self.constructor,
profile,
options,
np=c._namePool,
alias,temp;
if(properties && properties['xui.Profile']){
profile=properties;
alias = profile.alias || c.pickAlias();
}else{
if(properties && properties.key && xui.absBox.$type[properties.key]){
options=properties;
properties=null;
alias = options.alias;
alias = (alias&&!np[alias])?alias:c.pickAlias();
}else
alias = c.pickAlias();
profile=new xui.Profile(host,self.$key,alias,c,properties,events, options);
}
np[alias]=1;
profile._n=profile._n||[];
for(var i in (temp=c.$DataStruct))
getInstance:function(module, xid){
var m=this;
if(!xid){
if(module['xui.Profile'] && module.moduleClass && module.moduleXid){
xid = module.moduleXid;
module = module.moduleClass;
}else{
xid = module;
module = null;
}
}
if(module){
m=xui.SC.get(module);
if(!m||!m['xui.Module'])return;
}
var c=m._cache;
for(var i in c)
if(_.isFinite(i) ? (xid+"")==i : ('$'+xid)==i)return c[i];
},
destroyAll:function(){
_ini:function(properties, events, host){
var self=this,
c=self.constructor,
profile,
options,
np=c._namePool,
alias,temp;
if(properties && properties['xui.Profile']){
profile=properties;
alias = profile.alias || c.pickAlias();
}else{
if(properties && properties.key && xui.absBox.$type[properties.key]){
options=properties;
properties=null;
alias = options.alias;
alias = (alias&&!np[alias])?alias:c.pickAlias();
}else
alias = c.pickAlias();
profile=new xui.Profile(host,self.$key,alias,c,properties,events, options);
}
np[alias]=1;
profile._n=profile._n||[];
for(var i in (temp=c.$DataStruct))
_ini:function(properties, events, host){
var self=this,
c=self.constructor,
profile,
options,
np=c._namePool,
alias,temp;
if(properties && properties['xui.Profile']){
profile=properties;
alias = profile.alias || c.pickAlias();
}else{
if(properties && properties.key && xui.absBox.$type[properties.key]){
options=properties;
properties=null;
alias = options.alias;
alias = (alias&&!np[alias])?alias:c.pickAlias();
}else
alias = c.pickAlias();
profile=new xui.Profile(host,self.$key,alias,c,properties,events, options);
}
np[alias]=1;
profile._n=profile._n||[];
for(var i in (temp=c.$DataStruct))
getInstance:function(module, xid){
var m=this;
if(!xid && module){
if(module['xui.Profile'] && module.moduleClass && module.moduleXid){
xid = module.moduleXid;
module = module.moduleClass;
}else{
xid = module;
module = null;
}
}
if(module){
m=xui.SC.get(module);
if(!m||!m['xui.Module'])return;
}else{
m=this;
}
var c=m._cache;
if(xid){
for(var i in m._cache)
_ini:function(properties, events, host){
var self=this,
c=self.constructor,
profile,
options,
np=c._namePool,
alias,temp;
if(properties && properties['xui.Profile']){
profile=properties;
alias = profile.alias || c.pickAlias();
}else{
if(properties && properties.key && xui.absBox.$type[properties.key]){
options=properties;
properties=null;
alias = options.alias;
alias = (alias&&!np[alias])?alias:c.pickAlias();
}else
alias = c.pickAlias();
profile=new xui.Profile(host,self.$key,alias,c,properties,events, options);
}
np[alias]=1;
profile._n=profile._n||[];
for(var i in (temp=c.$DataStruct))
_ini:function(properties, events, host){
var self=this,
c=self.constructor,
profile,
options,
np=c._namePool,
alias,temp;
if(properties && properties['xui.Profile']){
profile=properties;
alias = profile.alias || c.pickAlias();
}else{
if(properties && properties.key && xui.absBox.$type[properties.key]){
options=properties;
properties=null;
alias = options.alias;
alias = (alias&&!np[alias])?alias:c.pickAlias();
}else
alias = c.pickAlias();
profile=new xui.Profile(host,self.$key,alias,c,properties,events, options);
}
np[alias]=1;
profile._n=profile._n||[];
for(var i in (temp=c.$DataStruct))