main: Define global properties with 'var' instead of 'let'

Symbols that are defined with 'let' are no longer visible outside
the module that defines them. To unbreak the code base, define all
non-private properties as global.

https://bugzilla.gnome.org/show_bug.cgi?id=785084
This commit is contained in:
Florian Müllner 2017-07-18 19:48:08 +02:00
parent 6a2af25d48
commit 9e32ba61fd

View File

@ -50,36 +50,36 @@ const A11Y_SCHEMA = 'org.gnome.desktop.a11y.keyboard';
const STICKY_KEYS_ENABLE = 'stickykeys-enable'; const STICKY_KEYS_ENABLE = 'stickykeys-enable';
const GNOMESHELL_STARTED_MESSAGE_ID = 'f3ea493c22934e26811cd62abe8e203a'; const GNOMESHELL_STARTED_MESSAGE_ID = 'f3ea493c22934e26811cd62abe8e203a';
let componentManager = null; var componentManager = null;
let panel = null; var panel = null;
let overview = null; var overview = null;
let runDialog = null; var runDialog = null;
let lookingGlass = null; var lookingGlass = null;
let wm = null; var wm = null;
let legacyTray = null; var legacyTray = null;
let messageTray = null; var messageTray = null;
let screenShield = null; var screenShield = null;
let notificationDaemon = null; var notificationDaemon = null;
let windowAttentionHandler = null; var windowAttentionHandler = null;
let ctrlAltTabManager = null; var ctrlAltTabManager = null;
let padOsdService = null; var padOsdService = null;
let osdWindowManager = null; var osdWindowManager = null;
let osdMonitorLabeler = null; var osdMonitorLabeler = null;
let sessionMode = null; var sessionMode = null;
let shellAccessDialogDBusService = null; var shellAccessDialogDBusService = null;
let shellAudioSelectionDBusService = null; var shellAudioSelectionDBusService = null;
let shellDBusService = null; var shellDBusService = null;
let shellMountOpDBusService = null; var shellMountOpDBusService = null;
let screenSaverDBus = null; var screenSaverDBus = null;
let screencastService = null; var screencastService = null;
let modalCount = 0; var modalCount = 0;
let actionMode = Shell.ActionMode.NONE; var actionMode = Shell.ActionMode.NONE;
let modalActorFocusStack = []; var modalActorFocusStack = [];
let uiGroup = null; var uiGroup = null;
let magnifier = null; var magnifier = null;
let xdndHandler = null; var xdndHandler = null;
let keyboard = null; var keyboard = null;
let layoutManager = null; var layoutManager = null;
let _startDate; let _startDate;
let _defaultCssStylesheet = null; let _defaultCssStylesheet = null;
let _cssStylesheet = null; let _cssStylesheet = null;