Ox.doc: make sure root item properties get included in inherited properties

This commit is contained in:
rolux 2012-06-02 11:49:14 +02:00
parent 6d528898d2
commit d78e644eb8

View file

@ -114,7 +114,10 @@ Ox.doc = (function() {
Ox.forEach(getChains(nodes), function(chain, childName) {
var child = instances[childName];
chain.forEach(function(parentName) {
var parent = instances[parentName] || null;
var parent = instances[parentName]
|| Ox.last(items[Ox.indexOf(items, function(item) {
return item.name == parentName;
})].returns);
parent && parent.properties && parent.properties.forEach(function(property) {
if (!hasProperty(child, property)) {
if (!child.inherited) {
@ -180,7 +183,7 @@ Ox.doc = (function() {
constructors.concat(getConstructors(item[key]));
}
});
})
});
return constructors;
}
function getIndent(string) {