From 7032d4ec3877a6ef7082ea08901cb048c6d979c6 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Thu, 20 Nov 2008 21:30:04 +0000 Subject: [PATCH] And add a comment. --- content/completion.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/completion.js b/content/completion.js index d00730a0..effc6e12 100644 --- a/content/completion.js +++ b/content/completion.js @@ -164,7 +164,9 @@ function Completion() //{{{ let orig = obj; if (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, // return that, too. if (orig.wrappedJSObject)