this.proplist[ename] = {}
this.proplist[ename]['props'] = [];
this.proplist[ename]['events'] = [];
+ this.proplist[ename]['inherits']= [];
var plist = this.proplist[ename]['props'] ;
var elist = this.proplist[ename]['events'];
+ var ilist = this.proplist[ename]['inherits'];
/*
we need...
p.name
// parent!!?!!?
var pi = GIRepository.object_info_get_parent(bi);
- this.proplist[ename]['inherits'] = [];
+
if (pi) {
evlist.push.apply(evlist,this.proplist[pname]['events']);
plist.push.apply(plist,this.proplist[pname]['props']);
- this.proplist[ename]['inherits'].push.apply(this.proplist[pname]['inherits']);
+ ilist.push.apply(ilist,this.proplist[pname]['inherits']);
}
// implements needs to be more carefull as it could add dupes..
var prop = GIRepository.object_info_get_interface(bi,i);
var iface = GIRepository.base_info_get_namespace(prop) +'.'+
GIRepository.base_info_get_name(prop);
- if ( this.proplist[ename]['inherits'].indexOf(iface) > -1) {
+ if ( ilist.indexOf(iface) > -1) {
continue;
}
this.getPropertiesFor(iface, 'props');
- this.proplist[ename]['inherits'].push(iface);
+ ilist.push(iface);
evlist.push.apply(evlist,this.proplist[iface]['events']);
plist.push.apply(plist,this.proplist[iface]['props']);
}