1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 11:58:00 +01:00

And add a comment.

This commit is contained in:
Kris Maglione
2008-11-20 21:30:04 +00:00
parent 5b9cd6e514
commit 7032d4ec38

View File

@@ -164,7 +164,9 @@ function Completion() //{{{
let orig = obj; let orig = obj;
if (obj.wrappedJSObject) if (obj.wrappedJSObject)
obj = obj.wrappedJSObject; obj = obj.wrappedJSObject;
compl.push([v for (v in this.iter(obj)) if (v[0] in orig || orig[v[0]])]) // v[0] in orig and orig[v[0]] catch different cases. XPCOM
// objects are problematic, to say the least.
compl.push([v for (v in this.iter(obj)) if (v[0] in orig || orig[v[0]] != undefined)])
// And if wrappedJSObject happens to be available, // And if wrappedJSObject happens to be available,
// return that, too. // return that, too.
if (orig.wrappedJSObject) if (orig.wrappedJSObject)