1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-01 05:12:29 +01:00

Allow fallback to en-US for missing files in the selected locale.

This commit is contained in:
Kris Maglione
2011-03-04 18:34:35 -05:00
parent ae5b61bf20
commit c82138567e
2 changed files with 13 additions and 3 deletions

View File

@@ -75,7 +75,8 @@ var JavaScript = Module("javascript", {
let globals = values(toplevel && this.window === obj ? this.globalNames : []);
if (toplevel && isObject(obj) && "wrappedJSObject" in obj)
yield "wrappedJSObject";
if (!set.add(seen, "wrappedJSObject"))
yield "wrappedJSObject";
for (let key in iter(globals, properties(obj, !toplevel, true)))
if (!set.add(seen, key))