correctly handle shadowed inherited properties
This commit is contained in:
parent
82599aec75
commit
ad338ede3b
1 changed files with 3 additions and 1 deletions
|
@ -103,7 +103,9 @@ Ox.doc = (function() {
|
||||||
inherited = item.inherited ? item.inherited.map(function(v) {
|
inherited = item.inherited ? item.inherited.map(function(v) {
|
||||||
return v.properties;
|
return v.properties;
|
||||||
}) : [];
|
}) : [];
|
||||||
return Ox.contains(properties.concat(inherited), property);
|
return Ox.contains(properties.concat(inherited).map(function(property) {
|
||||||
|
return property.name;
|
||||||
|
}), property.name);
|
||||||
}
|
}
|
||||||
var foo = {};
|
var foo = {};
|
||||||
constructors.forEach(function(constructor) {
|
constructors.forEach(function(constructor) {
|
||||||
|
|
Loading…
Reference in a new issue