From 6453aa2cdc7c7eaabd9aafa6c4159d7df403a802 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Sun, 7 Dec 2008 12:13:52 -0500 Subject: [PATCH] Offer "Default value" completions for options whose default value is 0 --- common/content/options.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/content/options.js b/common/content/options.js index a3d4abd9..555b9eaf 100644 --- a/common/content/options.js +++ b/common/content/options.js @@ -741,7 +741,10 @@ function Options() //{{{ { context.fork("default", 0, this, function (context) { context.title = ["Extra Completions"]; - context.completions = [[option.value, "Current value"], [option.defaultValue, "Default value"]].filter(function (f) f[0]) + context.completions = [ + [option.value, "Current value"], + [option.defaultValue, "Default value"] + ].filter(function (f) f[0] != ""); }); }