Ox.doc: make sure root item properties get included in inherited properties
This commit is contained in:
parent
6d528898d2
commit
d78e644eb8
1 changed files with 5 additions and 2 deletions
|
@ -114,7 +114,10 @@ Ox.doc = (function() {
|
||||||
Ox.forEach(getChains(nodes), function(chain, childName) {
|
Ox.forEach(getChains(nodes), function(chain, childName) {
|
||||||
var child = instances[childName];
|
var child = instances[childName];
|
||||||
chain.forEach(function(parentName) {
|
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) {
|
parent && parent.properties && parent.properties.forEach(function(property) {
|
||||||
if (!hasProperty(child, property)) {
|
if (!hasProperty(child, property)) {
|
||||||
if (!child.inherited) {
|
if (!child.inherited) {
|
||||||
|
@ -180,7 +183,7 @@ Ox.doc = (function() {
|
||||||
constructors.concat(getConstructors(item[key]));
|
constructors.concat(getConstructors(item[key]));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})
|
});
|
||||||
return constructors;
|
return constructors;
|
||||||
}
|
}
|
||||||
function getIndent(string) {
|
function getIndent(string) {
|
||||||
|
|
Loading…
Reference in a new issue