[Pkg-privacy-commits] [xul-ext-monkeysphere] 117/296: clean up and fix getDefaultStatusText function

Ximin Luo infinity0 at moszumanska.debian.org
Mon Aug 24 07:39:31 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch debian
in repository xul-ext-monkeysphere.

commit 2ccd5804e73663000882ab5a9d641496db911269
Author: mike castleman <m at mlcastle.net>
Date:   Sat Mar 6 13:38:24 2010 -0500

    clean up and fix getDefaultStatusText function
---
 chrome/content/monkeysphere.js | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/chrome/content/monkeysphere.js b/chrome/content/monkeysphere.js
index 23fc637..946cef0 100644
--- a/chrome/content/monkeysphere.js
+++ b/chrome/content/monkeysphere.js
@@ -242,11 +242,8 @@ var monkeysphere = {
 ////////////////////////////////////////////////////////////
   
   getDefaultStatusText: function(state) {
-    var labels = {};
-    for (state in monkeysphere.states) {
-      labels[monkeysphere.states.state] = "status" + state;
-    }
-    monkeysphere.messages.getString(labels[state] || "xulError");
+    var key = monkeysphere.states.state ? ("status" + state) : "xulError";
+    return monkeysphere.messages.getString(key);
   },
 
   setStatus: function(browser, state, message) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/xul-ext-monkeysphere.git



More information about the Pkg-privacy-commits mailing list