diff options
Diffstat (limited to 'common/components/protocols.js')
-rw-r--r-- | common/components/protocols.js | 8 |
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", |