Skip to content

Commit

Permalink
Merge pull request #473 from endlessm/T24818
Browse files Browse the repository at this point in the history
T24818: Define exported symbols with 'var' instead of 'const'

https://phabricator.endlessm.com/T24818
  • Loading branch information
ptomato committed Dec 6, 2018
2 parents 5f1e37f + ea21598 commit 1857689
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion EosAppStore/appStore.js
Expand Up @@ -30,7 +30,7 @@ const CLEAR_TIMEOUT = 300;
// many seconds
const QUIT_TIMEOUT = 15;

const AppStore = new Lang.Class({
var AppStore = new Lang.Class({
Name: 'AppStore',
Extends: Gtk.Application,

Expand Down
2 changes: 1 addition & 1 deletion EosAppStore/appStoreDBusService.js
Expand Up @@ -24,7 +24,7 @@ const AppStoreDBusIface = '<node><interface name="com.endlessm.AppStore">' +
'<property name="Visible" type="b" access="read"/>' +
'</interface></node>';

const AppStoreDBusService = new Lang.Class({
var AppStoreDBusService = new Lang.Class({
Name: 'AppStoreDBusService',

_init: function(app) {
Expand Down
2 changes: 1 addition & 1 deletion EosAppStore/appStoreLauncher.js
Expand Up @@ -21,7 +21,7 @@ const AppStoreIface = '<node><interface name="com.endlessm.AppStore">' +

const AppStoreProxy = Gio.DBusProxy.makeProxyWrapper(AppStoreIface);

const AppStoreLauncher = new Lang.Class({
var AppStoreLauncher = new Lang.Class({
Name: 'AppStoreLauncher',

_init: function() {
Expand Down
4 changes: 2 additions & 2 deletions EosAppStore/appStorePages.js
Expand Up @@ -3,7 +3,7 @@ const Gtk = imports.gi.Gtk;
const Lang = imports.lang;
const Signals = imports.signals;

const AppStorePageManager = new Lang.Class({
var AppStorePageManager = new Lang.Class({
Name: 'AppStorePageManager',
Extends: Gtk.Stack,

Expand Down Expand Up @@ -54,7 +54,7 @@ const AppStorePageManager = new Lang.Class({
}
});

const AppStorePageProvider = new Lang.Interface({
var AppStorePageProvider = new Lang.Interface({
Name: 'AppStorePageProvider',

createPage: Lang.Interface.UNIMPLEMENTED,
Expand Down
4 changes: 2 additions & 2 deletions EosAppStore/appStoreWindow.js
Expand Up @@ -17,7 +17,7 @@ const WMInspect = imports.wmInspect;

const SIDE_COMPONENT_ROLE = 'eos-side-component';

const AppStoreSizes = {
var AppStoreSizes = {
// Note: must be listed in order of increasing screenWidth.
// Window widths are chosen by design to match a specific
// number of columns of tiles on the application grid.
Expand Down Expand Up @@ -45,7 +45,7 @@ const AppStoreSizes = {
sidebarWidth: 215 }
};

const AppStoreWindow = new Lang.Class({
var AppStoreWindow = new Lang.Class({
Name: 'AppStoreWindow',
Extends: Gtk.ApplicationWindow,
Signals: {
Expand Down
2 changes: 1 addition & 1 deletion EosAppStore/categories.js
Expand Up @@ -2,7 +2,7 @@
const EosAppStorePrivate = imports.gi.EosAppStorePrivate;
const Lang = imports.lang;

const DEFAULT_APP_CATEGORY = 'web';
var DEFAULT_APP_CATEGORY = 'web';

function get_link_categories() {
return [
Expand Down
2 changes: 1 addition & 1 deletion EosAppStore/categoryButton.js
Expand Up @@ -5,7 +5,7 @@ const Gtk = imports.gi.Gtk;

const Lang = imports.lang;

const CategoryButton = new Lang.Class({
var CategoryButton = new Lang.Class({
Name: 'CategoryButton',
Extends: Gtk.RadioButton,
Properties: { 'category': GObject.ParamSpec.string('category',
Expand Down
2 changes: 1 addition & 1 deletion EosAppStore/separator.js
Expand Up @@ -5,7 +5,7 @@ const Lang = imports.lang;
const EDGE_WIDTH = 55;
const SHADOW_HEIGHT = 11;

const FrameSeparator = new Lang.Class({
var FrameSeparator = new Lang.Class({
Name: 'FrameSeparator',
Extends: Gtk.Box,

Expand Down
2 changes: 1 addition & 1 deletion EosAppStore/shellAppStore.js
Expand Up @@ -31,7 +31,7 @@ const SHELL_APP_STORE_IFACE = 'org.gnome.Shell.AppStore';

const ShellAppStoreProxy = Gio.DBusProxy.makeProxyWrapper(AppStoreIface);

const ShellAppStore = new Lang.Class({
var ShellAppStore = new Lang.Class({
Name: 'ShellAppStore',

_init: function() {
Expand Down
14 changes: 7 additions & 7 deletions EosAppStore/weblinkFrame.js
Expand Up @@ -94,7 +94,7 @@ function createWeblink(url, title, icon) {
return [availablePath, desktop];
};

const NewSiteHelper = new Lang.Class({
var NewSiteHelper = new Lang.Class({
Name: 'NewSiteHelper',

_init: function(url) {
Expand Down Expand Up @@ -152,7 +152,7 @@ const NewSiteHelper = new Lang.Class({
this._favicon = favicon;
this.emit('favicon-loaded');

// if we saved the desktop file already, update it
// if we saved the desktop file already, update it
// with the new icon
if (this._savedKeyfile) {
this._saveFavicon();
Expand Down Expand Up @@ -228,7 +228,7 @@ const NewSiteBoxState = {
INSTALLED: 5
};

const NewSiteBox = new Lang.Class({
var NewSiteBox = new Lang.Class({
Name: 'NewSiteBox',
Extends: Gtk.Bin,

Expand Down Expand Up @@ -509,7 +509,7 @@ const NewSiteBox = new Lang.Class({
});
Builder.bindTemplateChildren(NewSiteBox.prototype);

const WeblinkListBoxRow = new Lang.Class({
var WeblinkListBoxRow = new Lang.Class({
Name: 'WeblinkListBoxRow',
Extends: Gtk.EventBox,

Expand Down Expand Up @@ -587,7 +587,7 @@ const WeblinkListBoxRow = new Lang.Class({
});
Builder.bindTemplateChildren(WeblinkListBoxRow.prototype);

const WeblinkListBox = new Lang.Class({
var WeblinkListBox = new Lang.Class({
Name: 'WeblinkListBox',
Extends: Gtk.ListBox,

Expand All @@ -597,7 +597,7 @@ const WeblinkListBox = new Lang.Class({
}
});

const WeblinkListBoxRowSeparator = new Lang.Class({
var WeblinkListBoxRowSeparator = new Lang.Class({
Name: 'WeblinkListBoxRowSeparator',
Extends: Gtk.Frame,

Expand All @@ -607,7 +607,7 @@ const WeblinkListBoxRowSeparator = new Lang.Class({
}
});

const WeblinkFrame = new Lang.Class({
var WeblinkFrame = new Lang.Class({
Name: 'WeblinkFrame',
Extends: Gtk.Frame,
Implements: [AppStorePages.AppStorePageProvider],
Expand Down
2 changes: 1 addition & 1 deletion EosAppStore/wmInspect.js
Expand Up @@ -2,7 +2,7 @@ const Lang = imports.lang;
const Signals = imports.signals;
const Wnck = imports.gi.Wnck;

const WMInspect = new Lang.Class({
var WMInspect = new Lang.Class({
Name: 'WMInspect',

_init: function() {
Expand Down

0 comments on commit 1857689

Please sign in to comment.