Skip to content

Commit

Permalink
Bug 1440284 - change this.EXPORTED_SYMBOLS back to var EXPORTED_SYMBO…
Browse files Browse the repository at this point in the history
…LS in JS modules, r=mccr8.
  • Loading branch information
fqueze committed Feb 23, 2018
1 parent a45db31 commit 682b1ec
Show file tree
Hide file tree
Showing 609 changed files with 1,320 additions and 1,348 deletions.
4 changes: 2 additions & 2 deletions accessible/jsat/AccessFu.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

"use strict";

this.EXPORTED_SYMBOLS = ["AccessFu"]; // jshint ignore:line
var EXPORTED_SYMBOLS = ["AccessFu"]; // jshint ignore:line

ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/accessibility/Utils.jsm");
Expand All @@ -23,7 +23,7 @@ const SCREENREADER_SETTING = "accessibility.screenreader";
const QUICKNAV_MODES_PREF = "accessibility.accessfu.quicknav_modes";
const QUICKNAV_INDEX_PREF = "accessibility.accessfu.quicknav_index";

this.AccessFu = { // jshint ignore:line
var AccessFu = { // jshint ignore:line
/**
* Initialize chrome-layer accessibility functionality.
* If accessibility is enabled on the platform, then a special accessibility
Expand Down
4 changes: 2 additions & 2 deletions accessible/jsat/Constants.jsm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");

this.EXPORTED_SYMBOLS = ["Roles", "Events", "Relations",
"Filters", "States", "Prefilters"];
var EXPORTED_SYMBOLS = ["Roles", "Events", "Relations",
"Filters", "States", "Prefilters"];

function ConstantsMap(aObject, aPrefix, aMap = {}, aModifier = null) {
let offset = aPrefix.length;
Expand Down
6 changes: 3 additions & 3 deletions accessible/jsat/ContentControl.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ ChromeUtils.defineModuleGetter(this, "TraversalHelper",
ChromeUtils.defineModuleGetter(this, "Presentation",
"resource://gre/modules/accessibility/Presentation.jsm");

this.EXPORTED_SYMBOLS = ["ContentControl"];
var EXPORTED_SYMBOLS = ["ContentControl"];

const MOVEMENT_GRANULARITY_CHARACTER = 1;
const MOVEMENT_GRANULARITY_WORD = 2;
const MOVEMENT_GRANULARITY_PARAGRAPH = 8;

this.ContentControl = function ContentControl(aContentScope) {
function ContentControl(aContentScope) {
this._contentScope = Cu.getWeakReference(aContentScope);
this._childMessageSenders = new WeakMap();
};
}

this.ContentControl.prototype = {
messagesOfInterest: ["AccessFu:MoveCursor",
Expand Down
6 changes: 3 additions & 3 deletions accessible/jsat/EventManager.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ ChromeUtils.defineModuleGetter(this, "Events",
ChromeUtils.defineModuleGetter(this, "States",
"resource://gre/modules/accessibility/Constants.jsm");

this.EXPORTED_SYMBOLS = ["EventManager"];
var EXPORTED_SYMBOLS = ["EventManager"];

this.EventManager = function EventManager(aContentScope, aContentControl) {
function EventManager(aContentScope, aContentControl) {
this.contentScope = aContentScope;
this.contentControl = aContentControl;
this.addEventListener = this.contentScope.addEventListener.bind(
Expand All @@ -36,7 +36,7 @@ this.EventManager = function EventManager(aContentScope, aContentControl) {
this.webProgress = this.contentScope.docShell.
QueryInterface(Ci.nsIInterfaceRequestor).
getInterface(Ci.nsIWebProgress);
};
}

this.EventManager.prototype = {
editState: { editing: false },
Expand Down
6 changes: 3 additions & 3 deletions accessible/jsat/Gestures.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

"use strict";

this.EXPORTED_SYMBOLS = ["GestureSettings", "GestureTracker"]; // jshint ignore:line
var EXPORTED_SYMBOLS = ["GestureSettings", "GestureTracker"]; // jshint ignore:line

ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");

Expand Down Expand Up @@ -132,7 +132,7 @@ Point.prototype = {
* An externally accessible collection of settings used in gesture resolition.
* @type {Object}
*/
this.GestureSettings = { // jshint ignore:line
var GestureSettings = { // jshint ignore:line
/**
* Maximum duration of swipe
* @type {Number}
Expand Down Expand Up @@ -179,7 +179,7 @@ this.GestureSettings = { // jshint ignore:line
* gestures.
* @type {Object}
*/
this.GestureTracker = { // jshint ignore:line
var GestureTracker = { // jshint ignore:line
/**
* Reset GestureTracker to its initial state.
* @return {[type]} [description]
Expand Down
6 changes: 3 additions & 3 deletions accessible/jsat/OutputGenerator.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ ChromeUtils.defineModuleGetter(this, "Roles", // jshint ignore:line
ChromeUtils.defineModuleGetter(this, "States", // jshint ignore:line
"resource://gre/modules/accessibility/Constants.jsm");

this.EXPORTED_SYMBOLS = ["UtteranceGenerator", "BrailleGenerator"]; // jshint ignore:line
var EXPORTED_SYMBOLS = ["UtteranceGenerator", "BrailleGenerator"]; // jshint ignore:line

var OutputGenerator = {

Expand Down Expand Up @@ -581,7 +581,7 @@ var OutputGenerator = {
* clicked event. Speaking only 'clicked' makes sense. Speaking 'button' does
* not.
*/
this.UtteranceGenerator = { // jshint ignore:line
var UtteranceGenerator = { // jshint ignore:line
__proto__: OutputGenerator, // jshint ignore:line

gActionMap: {
Expand Down Expand Up @@ -840,7 +840,7 @@ this.UtteranceGenerator = { // jshint ignore:line
}
};

this.BrailleGenerator = { // jshint ignore:line
var BrailleGenerator = { // jshint ignore:line
__proto__: OutputGenerator, // jshint ignore:line

genForContext: function genForContext(aContext) {
Expand Down
4 changes: 2 additions & 2 deletions accessible/jsat/PointerAdapter.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

"use strict";

this.EXPORTED_SYMBOLS = ["PointerRelay", "PointerAdapter"]; // jshint ignore:line
var EXPORTED_SYMBOLS = ["PointerRelay", "PointerAdapter"]; // jshint ignore:line

ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");

Expand Down Expand Up @@ -137,7 +137,7 @@ var PointerRelay = { // jshint ignore:line
}
};

this.PointerAdapter = { // jshint ignore:line
var PointerAdapter = { // jshint ignore:line
start: function PointerAdapter_start() {
Logger.debug("PointerAdapter.start");
GestureTracker.reset();
Expand Down
4 changes: 2 additions & 2 deletions accessible/jsat/Presentation.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ChromeUtils.defineModuleGetter(this, "Roles", // jshint ignore:line
ChromeUtils.defineModuleGetter(this, "States", // jshint ignore:line
"resource://gre/modules/accessibility/Constants.jsm");

this.EXPORTED_SYMBOLS = ["Presentation"]; // jshint ignore:line
var EXPORTED_SYMBOLS = ["Presentation"]; // jshint ignore:line

/**
* The interface for all presenter classes. A presenter could be, for example,
Expand Down Expand Up @@ -672,7 +672,7 @@ BraillePresenter.prototype.textSelectionChanged =
};
};

this.Presentation = { // jshint ignore:line
var Presentation = { // jshint ignore:line
get presenters() {
delete this.presenters;
let presenterMap = {
Expand Down
6 changes: 3 additions & 3 deletions accessible/jsat/Traversal.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

"use strict";

this.EXPORTED_SYMBOLS = ["TraversalRules", "TraversalHelper"]; // jshint ignore:line
var EXPORTED_SYMBOLS = ["TraversalRules", "TraversalHelper"]; // jshint ignore:line

ChromeUtils.import("resource://gre/modules/accessibility/Utils.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
Expand Down Expand Up @@ -180,7 +180,7 @@ var gSimplePreFilter = Prefilters.DEFUNCT |
Prefilters.ARIA_HIDDEN |
Prefilters.TRANSPARENT;

this.TraversalRules = { // jshint ignore:line
var TraversalRules = { // jshint ignore:line
Simple: new BaseTraversalRule(gSimpleTraversalRoles, gSimpleMatchFunc),

SimpleOnScreen: new BaseTraversalRule(
Expand Down Expand Up @@ -361,7 +361,7 @@ this.TraversalRules = { // jshint ignore:line
}
};

this.TraversalHelper = {
var TraversalHelper = {
_helperPivotCache: null,

get helperPivotCache() {
Expand Down
14 changes: 7 additions & 7 deletions accessible/jsat/Utils.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ ChromeUtils.defineModuleGetter(this, "States", // jshint ignore:line
ChromeUtils.defineModuleGetter(this, "PluralForm", // jshint ignore:line
"resource://gre/modules/PluralForm.jsm");

this.EXPORTED_SYMBOLS = ["Utils", "Logger", "PivotContext", "PrefCache"]; // jshint ignore:line
var EXPORTED_SYMBOLS = ["Utils", "Logger", "PivotContext", "PrefCache"]; // jshint ignore:line

this.Utils = { // jshint ignore:line
var Utils = { // jshint ignore:line
_buildAppMap: {
"{3c2e2abc-06d4-11e1-ac3b-374f68613e61}": "b2g",
"{d1bfe7d9-c01e-4237-998b-7b5f960a4314}": "graphene",
Expand Down Expand Up @@ -543,7 +543,7 @@ State.prototype = {
}
};

this.Logger = { // jshint ignore:line
var Logger = { // jshint ignore:line
GESTURE: -1,
DEBUG: 0,
INFO: 1,
Expand Down Expand Up @@ -701,7 +701,7 @@ this.Logger = { // jshint ignore:line
* label. In this case the |accessible| field would be the embedded control,
* and the |accessibleForBounds| field would be the label.
*/
this.PivotContext = function PivotContext(aAccessible, aOldAccessible, // jshint ignore:line
function PivotContext(aAccessible, aOldAccessible, // jshint ignore:line
aStartOffset, aEndOffset, aIgnoreAncestry = false,
aIncludeInvisible = false) {
this._accessible = aAccessible;
Expand All @@ -712,7 +712,7 @@ this.PivotContext = function PivotContext(aAccessible, aOldAccessible, // jshint
this.endOffset = aEndOffset;
this._ignoreAncestry = aIgnoreAncestry;
this._includeInvisible = aIncludeInvisible;
};
}

PivotContext.prototype = {
get accessible() {
Expand Down Expand Up @@ -1013,7 +1013,7 @@ PivotContext.prototype = {
}
};

this.PrefCache = function PrefCache(aName, aCallback, aRunCallbackNow) { // jshint ignore:line
function PrefCache(aName, aCallback, aRunCallbackNow) { // jshint ignore:line
this.name = aName;
this.callback = aCallback;

Expand All @@ -1029,7 +1029,7 @@ this.PrefCache = function PrefCache(aName, aCallback, aRunCallbackNow) { // jshi
}

branch.addObserver(aName, this, true);
};
}

PrefCache.prototype = {
_getValue: function _getValue(aBranch) {
Expand Down
4 changes: 2 additions & 2 deletions browser/base/content/test/urlbar/Panel.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
* 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/. */

this.EXPORTED_SYMBOLS = [
var EXPORTED_SYMBOLS = [
"Panel",
];

ChromeUtils.import("resource://gre/modules/Timer.jsm");

this.Panel = function(panelElt, iframeURL) {
var Panel = function(panelElt, iframeURL) {
this.p = panelElt;
this.iframeURL = iframeURL;
this._initPanel();
Expand Down
4 changes: 2 additions & 2 deletions browser/components/customizableui/CustomizableUI.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

"use strict";

this.EXPORTED_SYMBOLS = ["CustomizableUI"];
var EXPORTED_SYMBOLS = ["CustomizableUI"];

ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
Expand Down Expand Up @@ -2943,7 +2943,7 @@ var CustomizableUIInternal = {
};
Object.freeze(CustomizableUIInternal);

this.CustomizableUI = {
var CustomizableUI = {
/**
* Constant reference to the ID of the navigation toolbar.
*/
Expand Down
2 changes: 1 addition & 1 deletion browser/components/customizableui/CustomizableWidgets.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

"use strict";

this.EXPORTED_SYMBOLS = ["CustomizableWidgets"];
var EXPORTED_SYMBOLS = ["CustomizableWidgets"];

ChromeUtils.import("resource:///modules/CustomizableUI.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm");
Expand Down
2 changes: 1 addition & 1 deletion browser/components/customizableui/CustomizeMode.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

"use strict";

this.EXPORTED_SYMBOLS = ["CustomizeMode"];
var EXPORTED_SYMBOLS = ["CustomizeMode"];

const kPrefCustomizationDebug = "browser.uiCustomization.debug";
const kPaletteId = "customization-palette";
Expand Down
2 changes: 1 addition & 1 deletion browser/components/customizableui/DragPositionManager.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var gManagers = new WeakMap();

const kPaletteId = "customization-palette";

this.EXPORTED_SYMBOLS = ["DragPositionManager"];
var EXPORTED_SYMBOLS = ["DragPositionManager"];

function AreaPositionManager(aContainer) {
// Caching the direction and bounds of the container for quick access later:
Expand Down
8 changes: 4 additions & 4 deletions browser/components/customizableui/PanelMultiView.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@

"use strict";

this.EXPORTED_SYMBOLS = [
var EXPORTED_SYMBOLS = [
"PanelMultiView",
"PanelView",
];
Expand Down Expand Up @@ -123,7 +123,7 @@ let gMultiLineElementsMap = new WeakMap();
* Classes deriving from this one may be easily converted to Custom Elements,
* although they would lose the ability of being associated lazily.
*/
this.AssociatedToNode = class {
var AssociatedToNode = class {
constructor(node) {
/**
* Node associated to this object.
Expand Down Expand Up @@ -249,7 +249,7 @@ this.AssociatedToNode = class {
/**
* This is associated to <panelmultiview> elements by the panelUI.xml binding.
*/
this.PanelMultiView = class extends this.AssociatedToNode {
var PanelMultiView = class extends this.AssociatedToNode {
/**
* Tries to open the specified <panel> and displays the main view specified
* with the "mainViewId" attribute on the <panelmultiview> node it contains.
Expand Down Expand Up @@ -1116,7 +1116,7 @@ this.PanelMultiView = class extends this.AssociatedToNode {
/**
* This is associated to <panelview> elements.
*/
this.PanelView = class extends this.AssociatedToNode {
var PanelView = class extends this.AssociatedToNode {
/**
* The "mainview" attribute is set before the panel is opened when this view
* is displayed as the main view, and is removed before the <panelview> is
Expand Down
4 changes: 2 additions & 2 deletions browser/components/customizableui/ScrollbarSampler.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@

"use strict";

this.EXPORTED_SYMBOLS = ["ScrollbarSampler"];
var EXPORTED_SYMBOLS = ["ScrollbarSampler"];

ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");

var gSystemScrollbarWidth = null;

this.ScrollbarSampler = {
var ScrollbarSampler = {
getSystemScrollbarWidth() {
if (gSystemScrollbarWidth !== null) {
return Promise.resolve(gSystemScrollbarWidth);
Expand Down
2 changes: 1 addition & 1 deletion browser/components/customizableui/SearchWidgetTracker.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

"use strict";

this.EXPORTED_SYMBOLS = ["SearchWidgetTracker"];
var EXPORTED_SYMBOLS = ["SearchWidgetTracker"];

ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm");
Expand Down
6 changes: 3 additions & 3 deletions browser/components/distribution.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/. */

this.EXPORTED_SYMBOLS = [ "DistributionCustomizer" ];
var EXPORTED_SYMBOLS = [ "DistributionCustomizer" ];

const DISTRIBUTION_CUSTOMIZATION_COMPLETE_TOPIC =
"distribution-customization-complete";
Expand All @@ -18,8 +18,8 @@ ChromeUtils.defineModuleGetter(this, "Preferences",
ChromeUtils.defineModuleGetter(this, "PlacesUtils",
"resource://gre/modules/PlacesUtils.jsm");

this.DistributionCustomizer = function DistributionCustomizer() {
};
function DistributionCustomizer() {
}

DistributionCustomizer.prototype = {
get _iniFile() {
Expand Down
Loading

0 comments on commit 682b1ec

Please sign in to comment.