[Pkg-mozext-commits] [greasemonkey] 02/21: Avoid usage of 'const' keyword.

David Prévot taffit at moszumanska.debian.org
Sun Sep 13 21:27:14 UTC 2015


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

taffit pushed a commit to branch master
in repository greasemonkey.

commit 92453f89209ecf674622eb7fd372a007fb5d33b6
Author: Anthony Lieuallen <arantius at gmail.com>
Date:   Mon Jul 13 16:55:33 2015 -0400

    Avoid usage of 'const' keyword.
    
    JsDev is incapable of understanding it.
    See: https://bugs.eclipse.org/bugs/show_bug.cgi?id=326842
---
 content/config.js                                |  2 +-
 content/newscript.js                             |  2 +-
 modules/constants.js                             |  4 ++--
 modules/prefmanager.js                           |  2 +-
 modules/sandbox.js                               |  4 ++--
 modules/scriptProtocol.js                        | 10 +++++-----
 modules/third-party/droppedUrls.js               |  2 +-
 modules/third-party/getChromeWinForContentWin.js |  4 ++--
 modules/util.js                                  |  4 ++--
 modules/util/alert.js                            |  4 ++--
 modules/util/anonWrap.js                         |  5 -----
 modules/util/compareFirefoxVersion.js            |  2 +-
 modules/util/emptyEl.js                          |  2 +-
 modules/util/enqueueRemoveFile.js                |  2 +-
 modules/util/findMessageManager.js               |  2 +-
 modules/util/getBestLocaleMatch.js               |  2 +-
 modules/util/getBinaryContents.js                |  4 ++--
 modules/util/getBrowserWindow.js                 |  4 ++--
 modules/util/getContents.js                      |  8 ++++----
 modules/util/getEnabled.js                       |  2 +-
 modules/util/getPreferredLocale.js               |  2 +-
 modules/util/getScriptSource.js                  |  2 +-
 modules/util/getService.js                       |  4 ++--
 modules/util/getTempDir.js                       |  6 +++---
 modules/util/getTempFile.js                      |  6 +++---
 modules/util/getUriFromFile.js                   |  4 ++--
 modules/util/hitch.js                            |  2 +-
 modules/util/inArray.js                          |  2 +-
 modules/util/isGreasemonkeyable.js               |  4 ++--
 modules/util/logError.js                         |  4 ++--
 modules/util/memoize.js                          |  2 +-
 modules/util/newUserScript.js                    |  4 ++--
 modules/util/openInEditor.js                     |  4 ++--
 modules/util/parseMetaLine.js                    |  2 +-
 modules/util/scriptDir.js                        |  4 ++--
 modules/util/scriptMatchesUrlAndRuns.js          |  2 +-
 modules/util/setEnabled.js                       |  2 +-
 modules/util/sha1.js                             |  2 +-
 modules/util/sniffGrants.js                      |  4 ++--
 modules/util/timeout.js                          |  2 +-
 modules/util/uuid.js                             |  4 ++--
 modules/util/windowId.js                         |  2 +-
 modules/util/windowIdForEvent.js                 |  2 +-
 modules/util/windowIsClosed.js                   |  2 +-
 modules/util/writeToFile.js                      |  8 ++++----
 45 files changed, 74 insertions(+), 79 deletions(-)

diff --git a/content/config.js b/content/config.js
index 4c4da14..3450d41 100644
--- a/content/config.js
+++ b/content/config.js
@@ -290,7 +290,7 @@ Config.prototype._updateVersion = function() {
     }
 
     if ('3.2' == newVersion && oldVersion != newVersion) {
-      const tmp_dir = Components
+      var tmp_dir = Components
           .classes['@mozilla.org/file/directory_service;1']
           .getService(Components.interfaces.nsIProperties)
           .get('TmpD', Components.interfaces.nsIFile);
diff --git a/content/newscript.js b/content/newscript.js
index 173a888..09e81d9 100644
--- a/content/newscript.js
+++ b/content/newscript.js
@@ -5,7 +5,7 @@ Components.utils.import('chrome://greasemonkey-modules/content/util.js');
 
 /////////////////////////////// global variables ///////////////////////////////
 
-const gClipboard = Components.classes["@mozilla.org/widget/clipboard;1"]
+var gClipboard = Components.classes["@mozilla.org/widget/clipboard;1"]
     .getService(Components.interfaces.nsIClipboard);
 var gClipText = null;
 var bundle = null;
diff --git a/modules/constants.js b/modules/constants.js
index 2bc0795..4eb8773 100644
--- a/modules/constants.js
+++ b/modules/constants.js
@@ -1,6 +1,6 @@
-const EXPORTED_SYMBOLS = ['GM_constants'];
+var EXPORTED_SYMBOLS = ['GM_constants'];
 
-const GM_constants = {
+var GM_constants = {
   'directoryMask': parseInt('750', 8),
   'fileMask': parseInt('640', 8),
 };
diff --git a/modules/prefmanager.js b/modules/prefmanager.js
index 291fce7..7de8272 100644
--- a/modules/prefmanager.js
+++ b/modules/prefmanager.js
@@ -1,4 +1,4 @@
-const EXPORTED_SYMBOLS = ['GM_PrefManager', 'GM_prefRoot'];
+var EXPORTED_SYMBOLS = ['GM_PrefManager', 'GM_prefRoot'];
 
 var gStringBundle = Components
     .classes["@mozilla.org/intl/stringbundle;1"]
diff --git a/modules/sandbox.js b/modules/sandbox.js
index 5ad838f..2b0f63e 100644
--- a/modules/sandbox.js
+++ b/modules/sandbox.js
@@ -1,4 +1,4 @@
-const EXPORTED_SYMBOLS = ['createSandbox', 'runScriptInSandbox'];
+var EXPORTED_SYMBOLS = ['createSandbox', 'runScriptInSandbox'];
 
 var Cu = Components.utils;
 var Ci = Components.interfaces;
@@ -152,7 +152,7 @@ function runScriptInSandbox(script, sandbox) {
             e.lineNumber
             );
         Components.utils.evalInSandbox(
-            GM_util.anonWrap(code), sandbox, gMaxJSVersion, fileName, 1);
+            '(function(){ '+code+'\n})()', sandbox, gMaxJSVersion, fileName, 1);
       } else {
         // Otherwise raise.
         throw e;
diff --git a/modules/scriptProtocol.js b/modules/scriptProtocol.js
index 234d2c9..28bf587 100644
--- a/modules/scriptProtocol.js
+++ b/modules/scriptProtocol.js
@@ -3,11 +3,11 @@ var EXPORTED_SYMBOLS = ['initScriptProtocol'];
 Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
 Components.utils.import('chrome://greasemonkey-modules/content/util.js');
 
-const Cc = Components.classes;
-const Ci = Components.interfaces;
-const Cr = Components.results;
-const schemeName = 'greasemonkey-script';
-const ioService = Cc['@mozilla.org/network/io-service;1']
+var Cc = Components.classes;
+var Ci = Components.interfaces;
+var Cr = Components.results;
+var schemeName = 'greasemonkey-script';
+var ioService = Cc['@mozilla.org/network/io-service;1']
     .getService(Ci.nsIIOService);
 
 
diff --git a/modules/third-party/droppedUrls.js b/modules/third-party/droppedUrls.js
index 0402737..f72fd73 100644
--- a/modules/third-party/droppedUrls.js
+++ b/modules/third-party/droppedUrls.js
@@ -2,7 +2,7 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-const EXPORTED_SYMBOLS = ['droppedUrls'];
+var EXPORTED_SYMBOLS = ['droppedUrls'];
 
 function droppedUrls(aEvent) {
   var dataTransfer = aEvent.dataTransfer;
diff --git a/modules/third-party/getChromeWinForContentWin.js b/modules/third-party/getChromeWinForContentWin.js
index c47352e..8746985 100644
--- a/modules/third-party/getChromeWinForContentWin.js
+++ b/modules/third-party/getChromeWinForContentWin.js
@@ -42,9 +42,9 @@
  *
  * ***** END LICENSE BLOCK ***** */
 
-const EXPORTED_SYMBOLS = ["getChromeWinForContentWin"];
+var EXPORTED_SYMBOLS = ["getChromeWinForContentWin"];
 
-const Ci = Components.interfaces;
+var Ci = Components.interfaces;
 
 function getChromeWinForContentWin(aContentWin) {
   return aContentWin
diff --git a/modules/util.js b/modules/util.js
index 0cb821c..3935b75 100644
--- a/modules/util.js
+++ b/modules/util.js
@@ -1,6 +1,6 @@
-const EXPORTED_SYMBOLS = ['GM_util'];
+var EXPORTED_SYMBOLS = ['GM_util'];
 
-const Cu = Components.utils;
+var Cu = Components.utils;
 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
 
 /*
diff --git a/modules/util/alert.js b/modules/util/alert.js
index f0a873f..dbc9751 100644
--- a/modules/util/alert.js
+++ b/modules/util/alert.js
@@ -1,7 +1,7 @@
 Components.utils.import('chrome://greasemonkey-modules/content/util.js');
 
-const EXPORTED_SYMBOLS = ['alert'];
-const promptService = Components
+var EXPORTED_SYMBOLS = ['alert'];
+var promptService = Components
     .classes["@mozilla.org/embedcomp/prompt-service;1"]
     .getService(Components.interfaces.nsIPromptService);
 
diff --git a/modules/util/anonWrap.js b/modules/util/anonWrap.js
deleted file mode 100644
index eef1c0b..0000000
--- a/modules/util/anonWrap.js
+++ /dev/null
@@ -1,5 +0,0 @@
-const EXPORTED_SYMBOLS = ['anonWrap'];
-
-function anonWrap(aSource) {
-  return ['(function(){\n', aSource, '\n})()'].join('');
-}
diff --git a/modules/util/compareFirefoxVersion.js b/modules/util/compareFirefoxVersion.js
index 7426040..22480a3 100644
--- a/modules/util/compareFirefoxVersion.js
+++ b/modules/util/compareFirefoxVersion.js
@@ -1,4 +1,4 @@
-const EXPORTED_SYMBOLS = ['compareFirefoxVersion'];
+var EXPORTED_SYMBOLS = ['compareFirefoxVersion'];
 
 function compareFirefoxVersion(aTarget) {
   var appInfo = Components.classes["@mozilla.org/xre/app-info;1"]
diff --git a/modules/util/emptyEl.js b/modules/util/emptyEl.js
index bdfa1d3..cdc0e87 100644
--- a/modules/util/emptyEl.js
+++ b/modules/util/emptyEl.js
@@ -1,4 +1,4 @@
-const EXPORTED_SYMBOLS = ['emptyEl'];
+var EXPORTED_SYMBOLS = ['emptyEl'];
 
 function emptyEl(el) {
   while (el.firstChild) el.removeChild(el.firstChild);
diff --git a/modules/util/enqueueRemoveFile.js b/modules/util/enqueueRemoveFile.js
index f09df5d..3a0aa5c 100644
--- a/modules/util/enqueueRemoveFile.js
+++ b/modules/util/enqueueRemoveFile.js
@@ -1,6 +1,6 @@
 Components.utils.import('chrome://greasemonkey-modules/content/prefmanager.js');
 
-const EXPORTED_SYMBOLS = ['enqueueRemoveFile'];
+var EXPORTED_SYMBOLS = ['enqueueRemoveFile'];
 
 
 function addEnqueuedPath(aPath) {
diff --git a/modules/util/findMessageManager.js b/modules/util/findMessageManager.js
index 3b6d17e..b6dfba5 100644
--- a/modules/util/findMessageManager.js
+++ b/modules/util/findMessageManager.js
@@ -1,4 +1,4 @@
-const EXPORTED_SYMBOLS = ['findMessageManager'];
+var EXPORTED_SYMBOLS = ['findMessageManager'];
 
 var Cc = Components.classes;
 var Ci = Components.interfaces;
diff --git a/modules/util/getBestLocaleMatch.js b/modules/util/getBestLocaleMatch.js
index 2ca83be..d137423 100644
--- a/modules/util/getBestLocaleMatch.js
+++ b/modules/util/getBestLocaleMatch.js
@@ -1,7 +1,7 @@
 Components.utils.import("resource://gre/modules/Services.jsm");
 Components.utils.import('chrome://greasemonkey-modules/content/util.js');
 
-const EXPORTED_SYMBOLS = ['getBestLocaleMatch'];
+var EXPORTED_SYMBOLS = ['getBestLocaleMatch'];
 
 // This function tries to find the best matching locale.
 // Locales should be given in the form "lang[-COUNTRY]".
diff --git a/modules/util/getBinaryContents.js b/modules/util/getBinaryContents.js
index b899290..dc4cd0d 100644
--- a/modules/util/getBinaryContents.js
+++ b/modules/util/getBinaryContents.js
@@ -1,8 +1,8 @@
 Components.utils.import('chrome://greasemonkey-modules/content/util.js');
 
-const EXPORTED_SYMBOLS = ['getBinaryContents'];
+var EXPORTED_SYMBOLS = ['getBinaryContents'];
 
-const ioService = Components.classes["@mozilla.org/network/io-service;1"]
+var ioService = Components.classes["@mozilla.org/network/io-service;1"]
     .getService(Components.interfaces.nsIIOService);
 
 function getBinaryContents(file) {
diff --git a/modules/util/getBrowserWindow.js b/modules/util/getBrowserWindow.js
index c07093d..da72fe6 100644
--- a/modules/util/getBrowserWindow.js
+++ b/modules/util/getBrowserWindow.js
@@ -1,6 +1,6 @@
-const EXPORTED_SYMBOLS = ['getBrowserWindow'];
+var EXPORTED_SYMBOLS = ['getBrowserWindow'];
 
-const windowMediator = Components
+var windowMediator = Components
    .classes['@mozilla.org/appshell/window-mediator;1']
    .getService(Components.interfaces.nsIWindowMediator);
 
diff --git a/modules/util/getContents.js b/modules/util/getContents.js
index ce6f49d..a017efd 100644
--- a/modules/util/getContents.js
+++ b/modules/util/getContents.js
@@ -1,13 +1,13 @@
 Components.utils.import('chrome://greasemonkey-modules/content/util.js');
 
-const EXPORTED_SYMBOLS = ['getContents'];
+var EXPORTED_SYMBOLS = ['getContents'];
 
-const ioService=Components.classes["@mozilla.org/network/io-service;1"]
+var ioService=Components.classes["@mozilla.org/network/io-service;1"]
     .getService(Components.interfaces.nsIIOService);
-const scriptableStream=Components
+var scriptableStream=Components
     .classes["@mozilla.org/scriptableinputstream;1"]
     .getService(Components.interfaces.nsIScriptableInputStream);
-const unicodeConverter = Components
+var unicodeConverter = Components
     .classes["@mozilla.org/intl/scriptableunicodeconverter"]
     .createInstance(Components.interfaces.nsIScriptableUnicodeConverter);
 
diff --git a/modules/util/getEnabled.js b/modules/util/getEnabled.js
index 0bdaa9b..7892650 100644
--- a/modules/util/getEnabled.js
+++ b/modules/util/getEnabled.js
@@ -1,6 +1,6 @@
 Components.utils.import('chrome://greasemonkey-modules/content/prefmanager.js');
 
-const EXPORTED_SYMBOLS = ['getEnabled'];
+var EXPORTED_SYMBOLS = ['getEnabled'];
 
 function getEnabled() {
   return GM_prefRoot.getValue("enabled", true);
diff --git a/modules/util/getPreferredLocale.js b/modules/util/getPreferredLocale.js
index b062b84..9f95afc 100644
--- a/modules/util/getPreferredLocale.js
+++ b/modules/util/getPreferredLocale.js
@@ -1,7 +1,7 @@
 Components.utils.import("resource://gre/modules/Services.jsm");
 Components.utils.import('chrome://greasemonkey-modules/content/util.js');
 
-const EXPORTED_SYMBOLS = ['getPreferredLocale'];
+var EXPORTED_SYMBOLS = ['getPreferredLocale'];
 
 var preferredLocale = (function() {
   var matchOS = Services.prefs.getBoolPref("intl.locale.matchOS");
diff --git a/modules/util/getScriptSource.js b/modules/util/getScriptSource.js
index b0ba4be..93983f8 100644
--- a/modules/util/getScriptSource.js
+++ b/modules/util/getScriptSource.js
@@ -1,4 +1,4 @@
-const EXPORTED_SYMBOLS = ['getScriptSource'];
+var EXPORTED_SYMBOLS = ['getScriptSource'];
 
 /** Given a script, return its entire source as a plain string. */
 function getScriptSource(aScript) {
diff --git a/modules/util/getService.js b/modules/util/getService.js
index 53e5abf..6cf3796 100644
--- a/modules/util/getService.js
+++ b/modules/util/getService.js
@@ -1,6 +1,6 @@
-const EXPORTED_SYMBOLS = ['getService'];
+var EXPORTED_SYMBOLS = ['getService'];
 
-const GM_SERVICE = Components
+var GM_SERVICE = Components
     .classes["@greasemonkey.mozdev.org/greasemonkey-service;1"]
     .getService()
     .wrappedJSObject;
diff --git a/modules/util/getTempDir.js b/modules/util/getTempDir.js
index 036a5bf..82cd769 100644
--- a/modules/util/getTempDir.js
+++ b/modules/util/getTempDir.js
@@ -1,9 +1,9 @@
 Components.utils.import('chrome://greasemonkey-modules/content/constants.js');
 
-const EXPORTED_SYMBOLS = ['getTempDir'];
+var EXPORTED_SYMBOLS = ['getTempDir'];
 
-const DIRECTORY_TYPE = Components.interfaces.nsIFile.DIRECTORY_TYPE;
-const TMP_DIR = Components.classes["@mozilla.org/file/directory_service;1"]
+var DIRECTORY_TYPE = Components.interfaces.nsIFile.DIRECTORY_TYPE;
+var TMP_DIR = Components.classes["@mozilla.org/file/directory_service;1"]
     .getService(Components.interfaces.nsIProperties)
     .get("TmpD", Components.interfaces.nsIFile);
 
diff --git a/modules/util/getTempFile.js b/modules/util/getTempFile.js
index de9ca0c..fa31233 100644
--- a/modules/util/getTempFile.js
+++ b/modules/util/getTempFile.js
@@ -1,9 +1,9 @@
 Components.utils.import('chrome://greasemonkey-modules/content/constants.js');
 
-const EXPORTED_SYMBOLS = ['getTempFile'];
+var EXPORTED_SYMBOLS = ['getTempFile'];
 
-const NORMAL_FILE_TYPE = Components.interfaces.nsIFile.NORMAL_FILE_TYPE;
-const TMP_DIR = Components.classes["@mozilla.org/file/directory_service;1"]
+var NORMAL_FILE_TYPE = Components.interfaces.nsIFile.NORMAL_FILE_TYPE;
+var TMP_DIR = Components.classes["@mozilla.org/file/directory_service;1"]
     .getService(Components.interfaces.nsIProperties)
     .get("TmpD", Components.interfaces.nsIFile);
 
diff --git a/modules/util/getUriFromFile.js b/modules/util/getUriFromFile.js
index d5f09dc..0da43ff 100644
--- a/modules/util/getUriFromFile.js
+++ b/modules/util/getUriFromFile.js
@@ -1,6 +1,6 @@
-const EXPORTED_SYMBOLS = ['getUriFromFile'];
+var EXPORTED_SYMBOLS = ['getUriFromFile'];
 
-const ioService = Components.classes["@mozilla.org/network/io-service;1"]
+var ioService = Components.classes["@mozilla.org/network/io-service;1"]
     .getService(Components.interfaces.nsIIOService);
 
 function getUriFromFile(file) {
diff --git a/modules/util/hitch.js b/modules/util/hitch.js
index b0ad646..abd4480 100644
--- a/modules/util/hitch.js
+++ b/modules/util/hitch.js
@@ -1,4 +1,4 @@
-const EXPORTED_SYMBOLS = ['hitch'];
+var EXPORTED_SYMBOLS = ['hitch'];
 
 function hitch(obj, method) {
   if (obj && method && ('string' == typeof method)) {
diff --git a/modules/util/inArray.js b/modules/util/inArray.js
index 1e0ed19..469ff48 100644
--- a/modules/util/inArray.js
+++ b/modules/util/inArray.js
@@ -1,4 +1,4 @@
-const EXPORTED_SYMBOLS = ['inArray'];
+var EXPORTED_SYMBOLS = ['inArray'];
 
 function inArray(aAry, aVal) {
   for (var i = 0, val = null; val = aAry[i]; i++) {
diff --git a/modules/util/isGreasemonkeyable.js b/modules/util/isGreasemonkeyable.js
index faf14e7..5286e90 100644
--- a/modules/util/isGreasemonkeyable.js
+++ b/modules/util/isGreasemonkeyable.js
@@ -1,8 +1,8 @@
 Components.utils.import('chrome://greasemonkey-modules/content/prefmanager.js');
 
-const EXPORTED_SYMBOLS = ['isGreasemonkeyable'];
+var EXPORTED_SYMBOLS = ['isGreasemonkeyable'];
 
-const ioService = Components.classes["@mozilla.org/network/io-service;1"]
+var ioService = Components.classes["@mozilla.org/network/io-service;1"]
     .getService(Components.interfaces.nsIIOService);
 
 function isGreasemonkeyable(url) {
diff --git a/modules/util/logError.js b/modules/util/logError.js
index c9ad39a..e8342d8 100644
--- a/modules/util/logError.js
+++ b/modules/util/logError.js
@@ -1,6 +1,6 @@
-const EXPORTED_SYMBOLS = ['logError'];
+var EXPORTED_SYMBOLS = ['logError'];
 
-const consoleService = Components.classes["@mozilla.org/consoleservice;1"]
+var consoleService = Components.classes["@mozilla.org/consoleservice;1"]
     .getService(Components.interfaces.nsIConsoleService);
 
 function logError(e, opt_warn, fileName, lineNumber) {
diff --git a/modules/util/memoize.js b/modules/util/memoize.js
index 3d618de..c7dd446 100644
--- a/modules/util/memoize.js
+++ b/modules/util/memoize.js
@@ -1,4 +1,4 @@
-const EXPORTED_SYMBOLS = ['memoize'];
+var EXPORTED_SYMBOLS = ['memoize'];
 
 // Decorate a function with a memoization wrapper, with a limited-size cache
 // to reduce peak memory utilization.  Simple usage:
diff --git a/modules/util/newUserScript.js b/modules/util/newUserScript.js
index 63419c9..e02b0e2 100644
--- a/modules/util/newUserScript.js
+++ b/modules/util/newUserScript.js
@@ -1,8 +1,8 @@
 Components.utils.import('chrome://greasemonkey-modules/content/util.js');
 
-const EXPORTED_SYMBOLS = ['newUserScript'];
+var EXPORTED_SYMBOLS = ['newUserScript'];
 
-const gWindowWatcher = Components
+var gWindowWatcher = Components
     .classes["@mozilla.org/embedcomp/window-watcher;1"]
     .getService(Components.interfaces.nsIWindowWatcher);
 
diff --git a/modules/util/openInEditor.js b/modules/util/openInEditor.js
index 0e3d0be..a461628 100644
--- a/modules/util/openInEditor.js
+++ b/modules/util/openInEditor.js
@@ -2,9 +2,9 @@ Components.utils.import("resource:///modules/devtools/scratchpad-manager.jsm");
 Components.utils.import('chrome://greasemonkey-modules/content/prefmanager.js');
 Components.utils.import('chrome://greasemonkey-modules/content/util.js');
 
-const EXPORTED_SYMBOLS = ['openInEditor'];
+var EXPORTED_SYMBOLS = ['openInEditor'];
 
-const COULD_NOT_LAUNCH = (function() {
+var COULD_NOT_LAUNCH = (function() {
   var stringBundle = Components
       .classes["@mozilla.org/intl/stringbundle;1"]
       .getService(Components.interfaces.nsIStringBundleService)
diff --git a/modules/util/parseMetaLine.js b/modules/util/parseMetaLine.js
index 0aabab5..93af0ce 100644
--- a/modules/util/parseMetaLine.js
+++ b/modules/util/parseMetaLine.js
@@ -1,4 +1,4 @@
-const EXPORTED_SYMBOLS = ['parseMetaLine'];
+var EXPORTED_SYMBOLS = ['parseMetaLine'];
 
 /*
  * Generated by PEG.js 0.8.0.
diff --git a/modules/util/scriptDir.js b/modules/util/scriptDir.js
index 285bd59..38500ad 100644
--- a/modules/util/scriptDir.js
+++ b/modules/util/scriptDir.js
@@ -1,9 +1,9 @@
 Components.utils.import('chrome://greasemonkey-modules/content/constants.js');
 Components.utils.import('chrome://greasemonkey-modules/content/util.js');
 
-const EXPORTED_SYMBOLS = ['scriptDir'];
+var EXPORTED_SYMBOLS = ['scriptDir'];
 
-const SCRIPT_DIR = Components
+var SCRIPT_DIR = Components
     .classes["@mozilla.org/file/directory_service;1"]
     .getService(Components.interfaces.nsIProperties)
     .get("ProfD", Components.interfaces.nsIFile);
diff --git a/modules/util/scriptMatchesUrlAndRuns.js b/modules/util/scriptMatchesUrlAndRuns.js
index 3d7d70a..72b0d6b 100644
--- a/modules/util/scriptMatchesUrlAndRuns.js
+++ b/modules/util/scriptMatchesUrlAndRuns.js
@@ -1,4 +1,4 @@
-const EXPORTED_SYMBOLS = ['scriptMatchesUrlAndRuns'];
+var EXPORTED_SYMBOLS = ['scriptMatchesUrlAndRuns'];
 
 function scriptMatchesUrlAndRuns(script, url, when) {
   return !script.pendingExec.length
diff --git a/modules/util/setEnabled.js b/modules/util/setEnabled.js
index 6bfaba2..d3bed76 100644
--- a/modules/util/setEnabled.js
+++ b/modules/util/setEnabled.js
@@ -1,6 +1,6 @@
 Components.utils.import('chrome://greasemonkey-modules/content/prefmanager.js');
 
-const EXPORTED_SYMBOLS = ['setEnabled'];
+var EXPORTED_SYMBOLS = ['setEnabled'];
 
 function setEnabled(enabled) {
   GM_prefRoot.setValue("enabled", enabled);
diff --git a/modules/util/sha1.js b/modules/util/sha1.js
index bcf3b62..251a640 100644
--- a/modules/util/sha1.js
+++ b/modules/util/sha1.js
@@ -1,6 +1,6 @@
 Components.utils.import('chrome://greasemonkey-modules/content/util.js');
 
-const EXPORTED_SYMBOLS = ['sha1'];
+var EXPORTED_SYMBOLS = ['sha1'];
 
 function sha1(unicode) {
   var unicodeConverter = Components
diff --git a/modules/util/sniffGrants.js b/modules/util/sniffGrants.js
index 2971064..a2a6191 100644
--- a/modules/util/sniffGrants.js
+++ b/modules/util/sniffGrants.js
@@ -1,8 +1,8 @@
-const EXPORTED_SYMBOLS = ['sniffGrants'];
+var EXPORTED_SYMBOLS = ['sniffGrants'];
 
 Components.utils.import('chrome://greasemonkey-modules/content/util.js');
 
-const APIS = [
+var APIS = [
     'GM_addStyle',
     'GM_deleteValue',
     'GM_getResourceText',
diff --git a/modules/util/timeout.js b/modules/util/timeout.js
index 5ba3411..4f21091 100644
--- a/modules/util/timeout.js
+++ b/modules/util/timeout.js
@@ -1,4 +1,4 @@
-const EXPORTED_SYMBOLS = ['timeout'];
+var EXPORTED_SYMBOLS = ['timeout'];
 
 function timeout(aCallback, aDelay) {
   // Create the timer object.
diff --git a/modules/util/uuid.js b/modules/util/uuid.js
index f9d959c..38f9210 100644
--- a/modules/util/uuid.js
+++ b/modules/util/uuid.js
@@ -1,6 +1,6 @@
-const EXPORTED_SYMBOLS = ['uuid'];
+var EXPORTED_SYMBOLS = ['uuid'];
 
-const uuidGenerator = Components
+var uuidGenerator = Components
     .classes["@mozilla.org/uuid-generator;1"]
     .getService(Components.interfaces.nsIUUIDGenerator);
 
diff --git a/modules/util/windowId.js b/modules/util/windowId.js
index b8d242b..49950b7 100644
--- a/modules/util/windowId.js
+++ b/modules/util/windowId.js
@@ -1,6 +1,6 @@
 Components.utils.import('chrome://greasemonkey-modules/content/util.js');
 
-const EXPORTED_SYMBOLS = ['windowId'];
+var EXPORTED_SYMBOLS = ['windowId'];
 
 function windowId(win) {
   try {
diff --git a/modules/util/windowIdForEvent.js b/modules/util/windowIdForEvent.js
index 3715ae6..8506ad3 100644
--- a/modules/util/windowIdForEvent.js
+++ b/modules/util/windowIdForEvent.js
@@ -1,6 +1,6 @@
 Components.utils.import('chrome://greasemonkey-modules/content/util.js');
 
-const EXPORTED_SYMBOLS = ['windowIdForEvent'];
+var EXPORTED_SYMBOLS = ['windowIdForEvent'];
 
 function windowIdForEvent(aEvent) {
   var doc = aEvent.originalTarget;
diff --git a/modules/util/windowIsClosed.js b/modules/util/windowIsClosed.js
index 36b4c4a..ef64542 100644
--- a/modules/util/windowIsClosed.js
+++ b/modules/util/windowIsClosed.js
@@ -1,6 +1,6 @@
 Components.utils.import('chrome://greasemonkey-modules/content/util.js');
 
-const EXPORTED_SYMBOLS = ['windowIsClosed'];
+var EXPORTED_SYMBOLS = ['windowIsClosed'];
 
 var Cu = Components.utils;
 
diff --git a/modules/util/writeToFile.js b/modules/util/writeToFile.js
index 0d69757..72ffae4 100644
--- a/modules/util/writeToFile.js
+++ b/modules/util/writeToFile.js
@@ -1,13 +1,13 @@
 Components.utils.import('resource://gre/modules/NetUtil.jsm');
 Components.utils.import('chrome://greasemonkey-modules/content/constants.js');
 
-const EXPORTED_SYMBOLS = ['writeToFile'];
+var EXPORTED_SYMBOLS = ['writeToFile'];
 
-const NORMAL_FILE_TYPE = Components.interfaces.nsIFile.NORMAL_FILE_TYPE;
+var NORMAL_FILE_TYPE = Components.interfaces.nsIFile.NORMAL_FILE_TYPE;
 //                   PR_WRONLY PR_CREATE_FILE PR_TRUNCATE
-const STREAM_FLAGS = 0x02      | 0x08         | 0x20;
+var STREAM_FLAGS = 0x02      | 0x08         | 0x20;
 
-const converter = Components
+var converter = Components
     .classes["@mozilla.org/intl/scriptableunicodeconverter"]
     .createInstance(Components.interfaces.nsIScriptableUnicodeConverter);
 converter.charset = "UTF-8";

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



More information about the Pkg-mozext-commits mailing list