[Pkg-mozext-commits] [firebug] 01/07: Defined entity converter as a constant

David Prévot taffit at moszumanska.debian.org
Mon Mar 31 22:46:17 UTC 2014


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

taffit pushed a commit to tag firebug-1.10.2
in repository firebug.

commit c6086fff24f59e629a0e28a48c31fa0081797c58
Author: Sebastian Zartner <sebastianzartner at gmx.de>
Date:   Wed Aug 1 10:09:14 2012 +0200

    Defined entity converter as a constant
---
 extension/content/firebug/lib/string.js | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/extension/content/firebug/lib/string.js b/extension/content/firebug/lib/string.js
index 7b8016b..f9e98c1 100644
--- a/extension/content/firebug/lib/string.js
+++ b/extension/content/firebug/lib/string.js
@@ -11,9 +11,11 @@ function(FBTrace, Options, Deprecated, Xpcom) {
 // ********************************************************************************************* //
 // Constants
 
-var Ci = Components.interfaces;
-var Cc = Components.classes;
-var Cu = Components.utils;
+const Ci = Components.interfaces;
+const Cc = Components.classes;
+const Cu = Components.utils;
+
+const entityConverter = Xpcom.CCSV("@mozilla.org/intl/entityconverter;1", "nsIEntityConverter");
 
 const reNotWhitespace = /[^\s]/;
 
@@ -189,7 +191,6 @@ function createSimpleEscape(name, direction)
 
 function escapeEntityAsName(char)
 {
-    var entityConverter = Xpcom.CCSV("@mozilla.org/intl/entityconverter;1", "nsIEntityConverter");
     try
     {
         return entityConverter.ConvertToEntity(char, entityConverter.entityW3C);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git



More information about the Pkg-mozext-commits mailing list