From ad338ede3b527e8b5da1d29ea5661ab5e5e366f5 Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 2 Jun 2012 12:13:25 +0200 Subject: [PATCH] correctly handle shadowed inherited properties --- source/Ox/js/JavaScript.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/Ox/js/JavaScript.js b/source/Ox/js/JavaScript.js index 733d8f34..7a8f4114 100644 --- a/source/Ox/js/JavaScript.js +++ b/source/Ox/js/JavaScript.js @@ -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) {