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

Override RealSet#add to match Set.add

This commit is contained in:
Kris Maglione
2014-02-22 10:07:58 -08:00
parent 9bb6dce76d
commit 619b414ca7
9 changed files with 23 additions and 44 deletions

View File

@@ -59,10 +59,8 @@ var Messages = Module("messages", {
let seen = RealSet();
for (let bundle in values(this.bundles))
for (let { key, value } in iter(bundle.getSimpleEnumeration(), Ci.nsIPropertyElement))
if (!seen.has(key)) {
seen.add(key);
if (!seen.add(key))
yield [key, value];
}
},
get: function get(value, default_) {