[Pkg-mozext-commits] [firetray] 07/14: Fix `let` and `const` use according to ES6.

David Prévot taffit at moszumanska.debian.org
Wed May 4 20:50:11 UTC 2016


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

taffit pushed a commit to branch master
in repository firetray.

commit f22394b1f6decd74badf58dfc57500b46b1cfdf6
Author: foudfou <foudil.newbie+git at gmail.com>
Date:   Mon Dec 7 09:31:48 2015 +0100

    Fix `let` and `const` use according to ES6.
---
 src/chrome/content/options.js        | 46 ++++++-------------------
 src/chrome/content/overlay.js        | 13 +------
 src/components/firetray-clhandler.js | 10 +++---
 src/modules/commons.js               | 66 ++++++++++++++++--------------------
 src/modules/log4moz.js               | 12 +++----
 5 files changed, 51 insertions(+), 96 deletions(-)

diff --git a/src/chrome/content/options.js b/src/chrome/content/options.js
index a1342f6..cf544eb 100644
--- a/src/chrome/content/options.js
+++ b/src/chrome/content/options.js
@@ -1,21 +1,21 @@
 /* -*- Mode: js2; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
 
-const Cc = Components.classes;
-const Ci = Components.interfaces;
-const Cu = Components.utils;
+var Cc = Components.classes;
+var Ci = Components.interfaces;
+var Cu = Components.utils;
 
 Cu.import("resource://firetray/FiretrayHandler.jsm");
 Cu.import("resource://firetray/commons.js");
 
-const TREEROW_ACCOUNT_OR_SERVER_TYPE_NAME     = 0;
-const TREEROW_ACCOUNT_OR_SERVER_TYPE_EXCLUDED = 1;
-const TREEROW_ACCOUNT_OR_SERVER_TYPE_ORDER    = 2;
-const TREELEVEL_SERVER_TYPES      = 0;
-const TREELEVEL_EXCLUDED_ACCOUNTS = 1;
+var TREEROW_ACCOUNT_OR_SERVER_TYPE_NAME     = 0;
+var TREEROW_ACCOUNT_OR_SERVER_TYPE_EXCLUDED = 1;
+var TREEROW_ACCOUNT_OR_SERVER_TYPE_ORDER    = 2;
+var TREELEVEL_SERVER_TYPES      = 0;
+var TREELEVEL_EXCLUDED_ACCOUNTS = 1;
 
-const PREF_DEFAULT_PANE = "pref-pane-windows";
+var PREF_DEFAULT_PANE = "pref-pane-windows";
 
-let log = firetray.Logging.getLogger("firetray.UIOptions");
+var log = firetray.Logging.getLogger("firetray.UIOptions");
 
 var firetrayUIOptions = {
   strings: null,
@@ -23,7 +23,6 @@ var firetrayUIOptions = {
   listeners: {},
 
   onLoad: function(e) {
-    log.debug("FULL FEATURED="+firetray.Handler.support['full_feat']);
     this.strings = document.getElementById("firetray-options-strings");
     this.prefwindow = document.getElementById("firetray-preferences");
     if (!this.prefwindow)
@@ -158,7 +157,6 @@ var firetrayUIOptions = {
   updateWindowAndIconOptions: function() {
     let hides_on_close    = document.getElementById("ui_hides_on_close").checked;
     let hides_on_minimize = document.getElementById("ui_hides_on_minimize").checked;
-    log.debug("hides_on_close="+hides_on_close+", hides_on_minimize="+hides_on_minimize);
     let doDisable = !(hides_on_close || hides_on_minimize);
     document.getElementById('ui_hides_single_window').disabled = doDisable;
     document.getElementById('ui_hides_last_only').disabled = doDisable;
@@ -193,7 +191,6 @@ var firetrayUIOptions = {
 
   initIconNames: function(prefIconNames, uiIconNameId, defaultIconName) {
     let appIconNames = firetray.Utils.getArrayPref(prefIconNames);
-    log.debug("appIconNames="+appIconNames);
     let len = appIconNames.length;
     if (len>2)
       throw new RangeError("Too many icon names");
@@ -217,10 +214,8 @@ var firetrayUIOptions = {
     for (let i=1; i<3; ++i) {
       let textbox = document.getElementById(uiIconNameId+i);
       let val = textbox.value.trim();
-      log.debug("val="+val);
       if (val) iconNames.push(val);
     }
-    log.debug("iconNames="+iconNames);
     firetray.Utils.setArrayPref(prefIconNames, iconNames); // FIXME: should be a <preference>
   },
 
@@ -311,7 +306,6 @@ var firetrayUIOptions = {
   },
 
   updateNotificationSettings: function() {
-    log.debug("updateNotificationSettings");
     let mailNotifyRadio = document.getElementById("ui_radiogroup_mail_notification");
     let mailNotificationType = +mailNotifyRadio.getItemAtIndex(mailNotifyRadio.selectedIndex).value;
     this.disableNotificationMaybe(mailNotificationType);
@@ -324,7 +318,6 @@ var firetrayUIOptions = {
   },
 
   disableNotificationMaybe: function(notificationSetting) {
-    log.debug("disableNotificationMaybe: "+notificationSetting);
 
     let iconTextColor = document.getElementById("icon_text_color");
     this.disableChildren(iconTextColor,
@@ -342,7 +335,6 @@ var firetrayUIOptions = {
   },
 
   disableMessageCountMaybe: function(msgCountType) {
-    log.debug("disableMessageCountMaybe: "+msgCountType);
     let msgCountTypeIsNewMessages = (msgCountType === FIRETRAY_MESSAGE_COUNT_TYPE_NEW);
 
     let notificationUnreadCount = document.getElementById("ui_mail_notification_unread_count");
@@ -447,14 +439,12 @@ var firetrayUIOptions = {
 
     let prefExcludedFoldersFlags = firetray.Utils.prefService
       .getIntPref("excluded_folders_flags");
-    log.debug("prefExcludedFoldersFlags="+prefExcludedFoldersFlags.toString(16));
     for (let folderType in FLDRS_UNINTERESTING) {
       let localizedFolderType = this.strings.getString(folderType);
       let folderTypeVal = FLDRS_UNINTERESTING[folderType];
       let item = excludedFoldersList.appendItem(localizedFolderType, folderTypeVal);
       item.setAttribute("observes", "broadcaster-notification-disabled");
       let folderTypeSet = (folderTypeVal & prefExcludedFoldersFlags);
-      log.debug("folder: "+folderType+" folderTypeVal="+folderTypeVal+" folderTypeSet="+folderTypeSet);
       if (!folderTypeSet) {
         excludedFoldersList.ensureElementIsVisible(item); // bug 326445
         excludedFoldersList.addItemToSelection(item); // does trigger onselect...
@@ -472,7 +462,6 @@ var firetrayUIOptions = {
   },
 
   saveExcludedFoldersFlags: function(uiElt) {
-    log.debug("LAST SELECTED: "+uiElt.currentItem.label);
     let excludedFoldersFlags = 0;
     for (let i = 0, len=uiElt.itemCount; i<len; ++i) {
       let folder = uiElt.getItemAtIndex(i);
@@ -481,7 +470,6 @@ var firetrayUIOptions = {
       else
         excludedFoldersFlags |= folder.value;  // set
     }
-    log.debug("excluded folders flags: "+excludedFoldersFlags.toString(16));
     return excludedFoldersFlags;
   },
 
@@ -492,9 +480,7 @@ var firetrayUIOptions = {
     let that = this;
     try {
       let cells = row.childNodes; // .getElementsByTagName('treecell');
-      log.debug("CELLS: "+cells);
       for (let i=0, len=cells.length; i<len; ++i) {
-        log.debug("i: "+i+", cell:"+cells[i]);
         if (disable === true) {
           cells[i].setAttribute('properties', "disabled");
           if (i === TREEROW_ACCOUNT_OR_SERVER_TYPE_EXCLUDED) {
@@ -525,7 +511,6 @@ var firetrayUIOptions = {
     let serverTypes = mailAccounts["serverTypes"];
     let accountsExcluded = mailAccounts["excludedAccounts"];
     let accountsByServerType = firetray.Messaging.accountsByServerType();
-    log.debug(JSON.stringify(accountsByServerType));
 
     // sort serverTypes according to order
     let serverTypesSorted = Object.keys(serverTypes);
@@ -538,7 +523,6 @@ var firetrayUIOptions = {
         return 1;
       return 0; // no sorting
     });
-    log.debug("serverTypesSorted: "+serverTypesSorted);
 
     let target = document.getElementById("ui_mail_accounts");
     for (let i=0, len=serverTypesSorted.length; i<len; ++i) {
@@ -572,7 +556,6 @@ var firetrayUIOptions = {
       // add actual accounts as children
       let accountChildren = document.createElement('treechildren');
       let typeAccounts = accountsByServerType[serverTypeName];
-      log.debug("type: "+serverTypeName+", Accounts: "+JSON.stringify(typeAccounts));
       if (typeof(typeAccounts) == "undefined")
         continue;
 
@@ -624,7 +607,6 @@ var firetrayUIOptions = {
         firetray.Messaging.applyToSubfolders(msgAccount.rootFolder, true, function(folder) {
           if (!(folder.flags & Ci.nsMsgFolderFlags.Favorite)) return;
 
-          log.debug("adding folder favorite="+folder.prettyName);
           let folderItem = document.createElement('treeitem');
           let folderRow = document.createElement('treerow');
 
@@ -679,25 +661,21 @@ var firetrayUIOptions = {
   },
 
   onMutation: function(mutation) {
-    log.debug("mutation: type="+mutation.type+" node="+mutation.target.nodeName+" attr="+mutation.attributeName);
     if (mutation.type !== "attributes") return;
 
     if (mutation.attributeName === "value") { // checkbox
-      log.debug("value changed!");
       let checkboxCell = mutation.target;
       let tree = document.getElementById("ui_tree_mail_accounts");
 
       let subRows = firetray.Utils.XPath(
         checkboxCell,
         'ancestor::xul:treeitem[1]/child::xul:treechildren/xul:treeitem/xul:treerow');
-      log.debug("subRows="+subRows);
       for (let i=0, len=subRows.length; i<len; ++i) {
         firetrayUIOptions._disableTreeRow(
           subRows[i], (checkboxCell.getAttribute("value") === "false"));
       }
 
     } else if (mutation.attributeName == "label") { // text
-      log.debug("label changed!");
       log.warn("NOT IMPLEMENTED YET: move row to new rank"); // TODO
     } else {
       return;
@@ -729,7 +707,6 @@ var firetrayUIOptions = {
   saveTreeAccountsOrServerTypes: function() { // FIXME: broken ?
     let tree = document.getElementById("ui_tree_mail_accounts");
 
-    log.debug("VIEW="+ tree.view + ", rowCount="+tree.view.rowCount);
     let prefObj = {"serverTypes":{}, "excludedAccounts":[]};
     for (let i=0, len=tree.view.rowCount; i<len; ++i) {
       let accountOrServerTypeName = tree.view.getCellText(
@@ -741,7 +718,6 @@ var firetrayUIOptions = {
       let accountOrServerTypeOrder = parseInt(
         tree.view.getCellText(
           i, tree.columns.getNamedColumn("account_or_server_type_order")));
-      log.debug("account: "+accountOrServerTypeName+", "+accountOrServerTypeExcluded);
 
       if (tree.view.getLevel(i) === TREELEVEL_SERVER_TYPES) {
         prefObj["serverTypes"][accountOrServerTypeName] =
@@ -761,14 +737,12 @@ var firetrayUIOptions = {
     }
 
     let prefStr = JSON.stringify(prefObj);
-    log.debug("prefStr"+prefStr);
 
     /* return the new prefString to be stored by pref system */
     return prefStr;
   },
 
   onKeyPressTreeAccountsOrServerTypes: function(event) {
-    log.debug("TREE KEYPRESS: "+event.originalTarget);
     let tree = document.getElementById("ui_tree_mail_accounts");
     let col = tree.editingColumn; // col.index
 
diff --git a/src/chrome/content/overlay.js b/src/chrome/content/overlay.js
index 87407b5..e819b5e 100644
--- a/src/chrome/content/overlay.js
+++ b/src/chrome/content/overlay.js
@@ -9,7 +9,7 @@ if ("undefined" == typeof(Ci)) var Ci = Components.interfaces;
 if ("undefined" == typeof(Cu)) var Cu = Components.utils;
 
 // can't use 'log': don't pollute global (chrome) namespace
-let firetray_log = firetray.Logging.getLogger("firetray.Chrome");
+var firetray_log = firetray.Logging.getLogger("firetray.Chrome");
 
 // https://groups.google.com/group/mozilla.dev.extensions/browse_thread/thread/e89e9c2a834ff2b6#
 var firetrayChrome = { // each new window gets a new firetrayChrome !
@@ -20,16 +20,13 @@ var firetrayChrome = { // each new window gets a new firetrayChrome !
   onLoad: function(win) {
     this.strings = document.getElementById("firetray-strings"); // chrome-specific
 
-    firetray_log.debug("Handler initialized: "+firetray.Handler.initialized);
     let init = firetray.Handler.initialized || firetray.Handler.init();
 
-    firetray_log.debug("ONLOAD");
     this.winId = firetray.Handler.registerWindow(win);
 
     win.addEventListener('close', firetrayChrome.onClose, true);
     this.hijackTitlebarButtons();
 
-    firetray_log.debug('Firetray LOADED: ' + init);
     return true;
   },
 
@@ -39,8 +36,6 @@ var firetrayChrome = { // each new window gets a new firetrayChrome !
   onQuit: function(win) {
     win.removeEventListener('close', firetrayChrome.onClose, true);
     firetray.Handler.unregisterWindow(win);
-    firetray_log.debug("windowsCount="+firetray.Handler.windowsCount+", visibleWindowsCount="+firetray.Handler.visibleWindowsCount);
-    firetray_log.debug('Firetray UNLOADED !');
   },
 
   /* until we find a fix (TODO), we need to set browser.tabs.warnOnClose=false
@@ -49,14 +44,11 @@ var firetrayChrome = { // each new window gets a new firetrayChrome !
    use trying to set warnOnClose=false temporarily in onClose, since onClose is
    called *after* the popup */
   onClose: function(event) {
-    firetray_log.debug('Firetray CLOSE');
     let hides_on_close = firetray.Utils.prefService.getBoolPref('hides_on_close');
-    firetray_log.debug('hides_on_close: '+hides_on_close);
     if (!hides_on_close) return false;
 
     let hides_single_window = firetray.Utils.prefService.getBoolPref('hides_single_window');
     let hides_last_only = firetray.Utils.prefService.getBoolPref('hides_last_only');
-    firetray_log.debug('hides_single_window='+hides_single_window+', windowsCount='+firetray.Handler.windowsCount);
     if (hides_last_only && (firetray.Handler.windowsCount > 1)) return true;
 
     if (hides_single_window)
@@ -76,7 +68,6 @@ var firetrayChrome = { // each new window gets a new firetrayChrome !
   hijackTitlebarButtons: function() {
     Object.keys(this.titlebarDispatch).forEach(function(id) {
       if (firetrayChrome.replaceCommand(id, this.titlebarDispatch[id])) {
-        firetray_log.debug('replaced command='+id);
       }
     }, this);
   },
@@ -93,7 +84,6 @@ var firetrayChrome = { // each new window gets a new firetrayChrome !
   replaceCommand: function(eltId, gotHidden) {
     let elt = document.getElementById(eltId);
     if (!elt) {
-      firetray_log.debug("Element '"+eltId+"' not found. Command not replaced.");
       return false;
     }
 
@@ -109,7 +99,6 @@ var firetrayChrome = { // each new window gets a new firetrayChrome !
 
     let callback = function(event) {
       if (event.target.id === eltId) {
-        firetray_log.debug(prevent.event +' on '+eltId);
         if (gotHidden())
           prevent.func(event);
       }
diff --git a/src/components/firetray-clhandler.js b/src/components/firetray-clhandler.js
index 51970d9..034d28d 100644
--- a/src/components/firetray-clhandler.js
+++ b/src/components/firetray-clhandler.js
@@ -1,14 +1,14 @@
 // https://developer.mozilla.org/en/Chrome/Command_Line
 
-const Cc = Components.classes;
-const Ci = Components.interfaces;
-const Cu = Components.utils;
+var Cc = Components.classes;
+var Ci = Components.interfaces;
+var Cu = Components.utils;
 
 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
 Cu.import("resource://firetray/logging.jsm");
 Cu.import("resource://firetray/FiretrayHandler.jsm");
 
-let log = firetray.Logging.getLogger("firetray.clhandler");
+var log = firetray.Logging.getLogger("firetray.clhandler");
 
 function firetayCommandLineHandler() {}
 firetayCommandLineHandler.prototype = {
@@ -45,13 +45,11 @@ firetayCommandLineHandler.prototype = {
 
       if (cmdLine.handleFlag("firetrayShowHide", false)) {
         checkAppStarted();
-        log.debug("*** CmdLine call -firetrayShowHide ***");
         firetray.Handler.showHideAllWindows();
         cmdLine.preventDefault = true;
 
       } else if (cmdLine.handleFlag("firetrayPresent", false)) {
         checkAppStarted();
-        log.debug("*** CmdLine call -firetrayPresent ***");
         firetray.Handler.showAllWindowsAndActivate();
         cmdLine.preventDefault = true;
       }
diff --git a/src/modules/commons.js b/src/modules/commons.js
index d2d1701..07e1075 100644
--- a/src/modules/commons.js
+++ b/src/modules/commons.js
@@ -18,48 +18,48 @@ var EXPORTED_SYMBOLS =
     "FIRETRAY_CHAT_ICON_BLINK_STYLE_FADE", "FIRETRAY_APPINDICATOR_ID",
     "FIRETRAY_APP_DB", "FIRETRAY_CB_SENTINEL" ];
 
-const Cc = Components.classes;
-const Ci = Components.interfaces;
-const Cu = Components.utils;
+var Cc = Components.classes;
+var Ci = Components.interfaces;
+var Cu = Components.utils;
 
 Cu.import("resource://gre/modules/Services.jsm");
 Cu.import("resource://firetray/logging.jsm");
 
-const FIRETRAY_VERSION     = "0.6.0"; // needed for sync call of onVersionChange() :(
-const FIRETRAY_OS_SUPPORT  = ['freebsd', 'linux', 'winnt']; // install.rdf sync :(
-const FIRETRAY_ID          = "{9533f794-00b4-4354-aa15-c2bbda6989f8}";
-const FIRETRAY_PREF_BRANCH = "extensions.firetray.";
-const FIRETRAY_SPLASH_PAGE = "http://foudfou.github.com/FireTray/";
+var FIRETRAY_VERSION     = "0.6.0"; // needed for sync call of onVersionChange() :(
+var FIRETRAY_OS_SUPPORT  = ['freebsd', 'linux', 'winnt']; // install.rdf sync :(
+var FIRETRAY_ID          = "{9533f794-00b4-4354-aa15-c2bbda6989f8}";
+var FIRETRAY_PREF_BRANCH = "extensions.firetray.";
+var FIRETRAY_SPLASH_PAGE = "http://foudfou.github.com/FireTray/";
 
-const FIRETRAY_APPLICATION_ICON_TYPE_THEMED = 0;
-const FIRETRAY_APPLICATION_ICON_TYPE_CUSTOM = 1;
+var FIRETRAY_APPLICATION_ICON_TYPE_THEMED = 0;
+var FIRETRAY_APPLICATION_ICON_TYPE_CUSTOM = 1;
 
-const FIRETRAY_MIDDLE_CLICK_ACTIVATE_LAST = 0;
-const FIRETRAY_MIDDLE_CLICK_SHOW_HIDE     = 1;
+var FIRETRAY_MIDDLE_CLICK_ACTIVATE_LAST = 0;
+var FIRETRAY_MIDDLE_CLICK_SHOW_HIDE     = 1;
 
-const FIRETRAY_MESSAGE_COUNT_TYPE_UNREAD  = 0;
-const FIRETRAY_MESSAGE_COUNT_TYPE_NEW     = 1;
+var FIRETRAY_MESSAGE_COUNT_TYPE_UNREAD  = 0;
+var FIRETRAY_MESSAGE_COUNT_TYPE_NEW     = 1;
 
-const FIRETRAY_NOTIFICATION_MESSAGE_COUNT = 0;
-const FIRETRAY_NOTIFICATION_NEWMAIL_ICON  = 1;
-const FIRETRAY_NOTIFICATION_CUSTOM_ICON   = 2;
+var FIRETRAY_NOTIFICATION_MESSAGE_COUNT = 0;
+var FIRETRAY_NOTIFICATION_NEWMAIL_ICON  = 1;
+var FIRETRAY_NOTIFICATION_CUSTOM_ICON   = 2;
 
-const FIRETRAY_IM_STATUS_AVAILABLE = "user-available";
-const FIRETRAY_IM_STATUS_AWAY      = "user-away";
-const FIRETRAY_IM_STATUS_BUSY      = "user-busy";
-const FIRETRAY_IM_STATUS_OFFLINE   = "user-offline";
+var FIRETRAY_IM_STATUS_AVAILABLE = "user-available";
+var FIRETRAY_IM_STATUS_AWAY      = "user-away";
+var FIRETRAY_IM_STATUS_BUSY      = "user-busy";
+var FIRETRAY_IM_STATUS_OFFLINE   = "user-offline";
 
-const FIRETRAY_ACCOUNT_SERVER_TYPE_IM = "im";
+var FIRETRAY_ACCOUNT_SERVER_TYPE_IM = "im";
 
-const FIRETRAY_DELAY_STARTUP_MILLISECONDS = 500;
-const FIRETRAY_DELAY_NOWAIT_MILLISECONDS  = 0;
+var FIRETRAY_DELAY_STARTUP_MILLISECONDS = 500;
+var FIRETRAY_DELAY_NOWAIT_MILLISECONDS  = 0;
 
-const FIRETRAY_CHAT_ICON_BLINK_STYLE_NORMAL = 0;
-const FIRETRAY_CHAT_ICON_BLINK_STYLE_FADE   = 1;
+var FIRETRAY_CHAT_ICON_BLINK_STYLE_NORMAL = 0;
+var FIRETRAY_CHAT_ICON_BLINK_STYLE_FADE   = 1;
 
-const FIRETRAY_APPINDICATOR_ID = "firetray";
+var FIRETRAY_APPINDICATOR_ID = "firetray";
 
-const FIRETRAY_APP_DB = {
+var FIRETRAY_APP_DB = {
 
   firefox: {
     id: "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}",
@@ -111,7 +111,7 @@ const FIRETRAY_APP_DB = {
  * Note: it's not possible to define a sentinel when the return type is void.
  * Note: almost all return types end up as int's (even gboolean).
  */
-const FIRETRAY_CB_SENTINEL = -1;
+var FIRETRAY_CB_SENTINEL = -1;
 
 /**
  * firetray namespace.
@@ -120,7 +120,7 @@ if ("undefined" == typeof(firetray)) {
   var firetray = {};
 };
 
-let log = firetray.Logging.getLogger("firetray.commons");
+var log = firetray.Logging.getLogger("firetray.commons");
 
 firetray.Utils = {
   prefService: Services.prefs.getBranch(FIRETRAY_PREF_BRANCH),
@@ -135,7 +135,6 @@ firetray.Utils = {
 
       Services.obs.addObserver(this, topic, false);
       this.observedTopics[topic] = true;
-      log.debug("registred "+topic+" for "+handler);
     }, handler);
   },
 
@@ -162,7 +161,6 @@ firetray.Utils = {
     return objPref;
   },
   setObjPref: function(prefStr, obj) {
-    log.debug(obj);
     try {
       firetray.Utils.prefService.setCharPref(prefStr, JSON.stringify(obj));
     } catch (x) {
@@ -198,7 +196,6 @@ firetray.Utils = {
     let registeryValue = Cc['@mozilla.org/chrome/chrome-registry;1']
       .getService(Ci.nsIChromeRegistry)
       .convertChromeURL(uri).spec;
-    log.debug(registeryValue);
 
     if (/^file:/.test(registeryValue))
       registeryValue = this._urlToPath(registeryValue);
@@ -238,7 +235,6 @@ firetray.Utils = {
     } catch (x) {
       log.error(x);
     }
-    log.debug("XPathResult="+result.resultType);
 
     switch (result.resultType) {
     case XPathResult.NUMBER_TYPE:
@@ -252,7 +248,6 @@ firetray.Utils = {
     var list = [];
     try {
       for (let node = result.iterateNext(); node; node = result.iterateNext()) {
-        log.debug("node="+node.nodeName);
         switch (node.nodeType) {
         case node.ATTRIBUTE_NODE:
           list.push(node.value);
@@ -268,7 +263,6 @@ firetray.Utils = {
       log.error(x);
     }
 
-    log.debug("len="+list.length);
     return list;
   },
 
diff --git a/src/modules/log4moz.js b/src/modules/log4moz.js
index 674e240..52c19f7 100644
--- a/src/modules/log4moz.js
+++ b/src/modules/log4moz.js
@@ -4,14 +4,14 @@
 
 this.EXPORTED_SYMBOLS = ['Log4Moz'];
 
-const {classes: Cc, interfaces: Ci, results: Cr, utils: Cu} = Components;
+var {classes: Cc, interfaces: Ci, results: Cr, utils: Cu} = Components;
 
-const ONE_BYTE = 1;
-const ONE_KILOBYTE = 1024 * ONE_BYTE;
-const ONE_MEGABYTE = 1024 * ONE_KILOBYTE;
+var ONE_BYTE = 1;
+var ONE_KILOBYTE = 1024 * ONE_BYTE;
+var ONE_MEGABYTE = 1024 * ONE_KILOBYTE;
 
-const STREAM_SEGMENT_SIZE = 4096;
-const PR_UINT32_MAX = 0xffffffff;
+var STREAM_SEGMENT_SIZE = 4096;
+var PR_UINT32_MAX = 0xffffffff;
 
 Cu.import("resource://gre/modules/NetUtil.jsm");
 Cu.import("resource://gre/modules/FileUtils.jsm");

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



More information about the Pkg-mozext-commits mailing list