1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 09:48:00 +01:00

Some option listing fixes/improvements.

This commit is contained in:
Kris Maglione
2010-11-04 10:08:49 -04:00
parent f1b8e7ee7e
commit 47f498a403
2 changed files with 6 additions and 4 deletions

View File

@@ -58,13 +58,13 @@ const JavaScript = Module("javascript", {
objectKeys: function objectKeys(obj, toplevel) {
// Things we can dereference
if (!obj || ["object", "string", "function"].indexOf(typeof obj) == -1)
if (!obj || ["object", "string", "function"].indexOf(typeof obj) === -1)
return [];
if (jsmodules.isPrototypeOf(obj) && !toplevel)
return [];
let completions = [k for (k in this.iter(obj, toplevel))];
if (obj == modules) // Hack.
if (obj === modules) // Hack.
completions = completions.concat([k for (k in this.iter(jsmodules, toplevel))]);
return completions;
},