diff --git a/common/content/options.js b/common/content/options.js index bc5f8455..dfb2c9bc 100644 --- a/common/content/options.js +++ b/common/content/options.js @@ -1269,6 +1269,21 @@ function Options() //{{{ return ret; }, + /** + * Remove the option with matching name. + * + * @param {string} name The name of the option to remove. This can be + * any of the options's names. + */ + remove: function (name) + { + for each (let option in optionHash) + { + if (option.hasName(name)) + delete optionHash[option.name]; + } + }, + /** @property {Object} The options store. */ get store() storage.options,