summaryrefslogtreecommitdiff
path: root/common/components
diff options
context:
space:
mode:
authorKris Maglione <kris@vimperator.org>2009-11-03 19:50:10 -0500
committerKris Maglione <kris@vimperator.org>2009-11-03 19:50:10 -0500
commit68dd6156485ea7ff9cb14f205a3e47d6b81695e2 (patch)
treee5ca0a3cfc107439f2157de46ff9a59e96036591 /common/components
parentd4b818b7d736fd76145cb6e5004287e1d118fb43 (diff)
downloadpentadactyl-68dd6156485ea7ff9cb14f205a3e47d6b81695e2.tar.gz
Cleanup some stuffs.
Diffstat (limited to 'common/components')
-rw-r--r--common/components/protocols.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/common/components/protocols.js b/common/components/protocols.js
index 6cbacd2a..2a0c5052 100644
--- a/common/components/protocols.js
+++ b/common/components/protocols.js
@@ -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",