From 6ca4af3c95c36123e382a5f1ae887696a7e3486c Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Wed, 17 Dec 2008 22:32:32 -0500 Subject: [PATCH] Add commandline.runSilently --- common/content/ui.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/common/content/ui.js b/common/content/ui.js index d48f38e8..89e5009a 100644 --- a/common/content/ui.js +++ b/common/content/ui.js @@ -876,6 +876,20 @@ function CommandLine() //{{{ storage.styles.removeSheet("silent-mode", null, null, null, true); }, + runSilently: function (fn, self) + { + let wasSilent = this.silent; + this.silent = true; + try + { + fn.call(self); + } + finally + { + this.silent = wasSilent; + } + }, + get command() { try