correctly handle shadowed inherited properties

This commit is contained in:
rolux 2012-06-02 12:13:25 +02:00
parent 82599aec75
commit ad338ede3b

View file

@ -103,7 +103,9 @@ Ox.doc = (function() {
inherited = item.inherited ? item.inherited.map(function(v) {
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 = {};
constructors.forEach(function(constructor) {