Use the wrapped object for completion of XPCNativeWrappers

This commit is contained in:
Kris Maglione committed 2008-10-09 17:53:44 +00:00
1 parent e1e8878c0a
commit 9644eca6a9
2 files changed
+3 -4

No files matched your search

+2
View File
@@ -149,6 +149,8 @@ liberator.Completion = function () //{{{
// Things we can dereference
if (["object", "string", "function"].indexOf(typeof obj) == -1)
continue;
if (/^\[XPCNativeWrapper /.test(obj))
obj = obj.wrappedJSObject;
for (let [k, v] in this.iter(obj))
compl.push([k, liberator.template.highlight(v, true)]);