Skip to content
Browse files

Merge branch 'firebug1.10' of github.com:firebug/firebug into firebug…

…1.10
  • Loading branch information...
2 parents 120e208 + c6086ff commit 7e7b1a91b55a71d8a87a90e8047b71494644a4b7 @janodvarko janodvarko committed Aug 1, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 extension/content/firebug/lib/string.js
View
9 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);

0 comments on commit 7e7b1a9

Please sign in to comment.
Something went wrong with that request. Please try again.