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

Cleanup some stuffs.

This commit is contained in:
Kris Maglione
2009-11-03 19:50:10 -05:00
parent d4b818b7d7
commit 68dd615648
3 changed files with 18 additions and 27 deletions

View File

@@ -102,7 +102,6 @@ function Liberator()
this.HELP_TAGS = {};
this.FILE_MAP = {};
this.OVERLAY_MAP = {};
this.NAMESPACES = [];
}
Liberator.prototype = {
contractID: "@mozilla.org/network/protocol;1?name=liberator",
@@ -122,9 +121,12 @@ Liberator.prototype = {
init: function (obj)
{
for each (let prop in ["HELP_TAGS", "FILE_MAP", "OVERLAY_MAP", "NAMESPACES"])
for (let [k, v] in Iterator(obj[prop]))
for each (let prop in ["HELP_TAGS", "FILE_MAP", "OVERLAY_MAP"])
{
this[prop] = this[prop].constructor();
for (let [k, v] in Iterator(obj[prop] || {}))
this[prop][k] = v
}
},
scheme: "liberator",