From 68dd6156485ea7ff9cb14f205a3e47d6b81695e2 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Tue, 3 Nov 2009 19:50:10 -0500 Subject: Cleanup some stuffs. --- common/components/protocols.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'common/components') 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", -- cgit v1.2.3