[gnome-shell-extensions/wip/fmuellner/cleanups: 10/15] style: Fix stray/missing semi-colons



commit f75d1d75af45939e70ab0e29ca7e575ed24f9438
Author: Florian Müllner <fmuellner gnome org>
Date:   Sat Jan 26 19:51:38 2019 +0100

    style: Fix stray/missing semi-colons
    
    Spotted by eslint.
    
    https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/49

 extensions/apps-menu/extension.js               | 10 +++++-----
 extensions/auto-move-windows/extension.js       |  4 ++--
 extensions/drive-menu/extension.js              |  2 +-
 extensions/native-window-placement/extension.js |  6 +++---
 extensions/places-menu/extension.js             |  4 ++--
 extensions/places-menu/placeDisplay.js          | 12 ++++++------
 extensions/user-theme/extension.js              |  2 +-
 extensions/window-list/extension.js             | 16 ++++++++--------
 extensions/windowsNavigator/extension.js        | 24 ++++++++++++------------
 9 files changed, 40 insertions(+), 40 deletions(-)
---
diff --git a/extensions/apps-menu/extension.js b/extensions/apps-menu/extension.js
index 2345674..deacf25 100644
--- a/extensions/apps-menu/extension.js
+++ b/extensions/apps-menu/extension.js
@@ -42,7 +42,7 @@ class ActivitiesMenuItem extends PopupMenu.PopupBaseMenuItem {
         Main.overview.toggle();
         super.activate(event);
     }
-};
+}
 
 class ApplicationMenuItem extends PopupMenu.PopupBaseMenuItem {
     constructor(button, app) {
@@ -112,7 +112,7 @@ class ApplicationMenuItem extends PopupMenu.PopupBaseMenuItem {
     _updateIcon() {
         this._iconBin.set_child(this.getDragActor());
     }
-};
+}
 
 class CategoryMenuItem extends PopupMenu.PopupBaseMenuItem {
     constructor(button, category) {
@@ -226,7 +226,7 @@ class CategoryMenuItem extends PopupMenu.PopupBaseMenuItem {
         }
         super.setActive(active, params);
     }
-};
+}
 
 class ApplicationsMenu extends PopupMenu.PopupMenu {
     constructor(sourceActor, arrowAlignment, arrowSide, button) {
@@ -262,7 +262,7 @@ class ApplicationsMenu extends PopupMenu.PopupMenu {
         }
         super.toggle();
     }
-};
+}
 
 class DesktopTarget {
     constructor() {
@@ -397,7 +397,7 @@ class DesktopTarget {
 
         return true;
     }
-};
+}
 Signals.addSignalMethods(DesktopTarget.prototype);
 
 let ApplicationsButton = GObject.registerClass(
diff --git a/extensions/auto-move-windows/extension.js b/extensions/auto-move-windows/extension.js
index cf417ec..4ce0eec 100644
--- a/extensions/auto-move-windows/extension.js
+++ b/extensions/auto-move-windows/extension.js
@@ -54,7 +54,7 @@ class WindowMover {
                                               this._appWindowsChanged.bind(this)),
                 moveWindowsId: 0,
                 windows: app.get_windows()
-            }
+            };
             this._appData.set(app, data);
         });
     }
@@ -106,7 +106,7 @@ class WindowMover {
         });
         data.windows = windows;
     }
-};
+}
 
 let prevCheckWorkspaces;
 let winMover;
diff --git a/extensions/drive-menu/extension.js b/extensions/drive-menu/extension.js
index 918d298..e571392 100644
--- a/extensions/drive-menu/extension.js
+++ b/extensions/drive-menu/extension.js
@@ -110,7 +110,7 @@ class MountMenuItem extends PopupMenu.PopupBaseMenuItem {
 
         super.activate(event);
     }
-};
+}
 
 let DriveMenu = GObject.registerClass(
 class DriveMenu extends PanelMenu.Button {
diff --git a/extensions/native-window-placement/extension.js b/extensions/native-window-placement/extension.js
index cc644b5..06217f8 100644
--- a/extensions/native-window-placement/extension.js
+++ b/extensions/native-window-placement/extension.js
@@ -66,7 +66,7 @@ class Rect {
         this.x += dx;
         this.y += dy;
     }
-};
+}
 
 class NaturalLayoutStrategy extends Workspace.LayoutStrategy {
     constructor(settings) {
@@ -231,7 +231,7 @@ class NaturalLayoutStrategy extends Workspace.LayoutStrategy {
 
         return slots;
     }
-};
+}
 
 let winInjections, workspaceInjections;
 
@@ -252,7 +252,7 @@ function enable() {
         strategy.computeLayout(windows, layout);
 
         return layout;
-    }
+    };
 
     /// position window titles on top of windows in overlay ////
     winInjections['relayout'] = Workspace.WindowOverlay.prototype.relayout;
diff --git a/extensions/places-menu/extension.js b/extensions/places-menu/extension.js
index cebab17..fc5e40d 100644
--- a/extensions/places-menu/extension.js
+++ b/extensions/places-menu/extension.js
@@ -62,14 +62,14 @@ class PlaceMenuItem extends PopupMenu.PopupBaseMenuItem {
         this._icon.gicon = info.icon;
         this._label.text = info.name;
     }
-};
+}
 
 const SECTIONS = [
     'special',
     'devices',
     'bookmarks',
     'network'
-]
+];
 
 let PlacesMenu = GObject.registerClass(
 class PlacesMenu extends PanelMenu.Button {
diff --git a/extensions/places-menu/placeDisplay.js b/extensions/places-menu/placeDisplay.js
index 9f36d30..2890ab3 100644
--- a/extensions/places-menu/placeDisplay.js
+++ b/extensions/places-menu/placeDisplay.js
@@ -75,7 +75,7 @@ class PlaceInfo {
                     Main.notifyError(_("Failed to launch “%s”").format(this.name), e.message);
                 }
             }
-        }
+        };
     }
 
     launch(timestamp) {
@@ -128,7 +128,7 @@ class PlaceInfo {
             throw e;
         }
     }
-};
+}
 Signals.addSignalMethods(PlaceInfo.prototype);
 
 class RootInfo extends PlaceInfo {
@@ -168,7 +168,7 @@ class RootInfo extends PlaceInfo {
         }
         super.destroy();
     }
-};
+}
 
 
 class PlaceDeviceInfo extends PlaceInfo {
@@ -220,7 +220,7 @@ class PlaceDeviceInfo extends PlaceInfo {
         let msg = _("Ejecting drive “%s” failed:").format(this._mount.get_name());
         Main.notifyError(msg, exception.message);
     }
-};
+}
 
 class PlaceVolumeInfo extends PlaceInfo {
     _init(kind, volume) {
@@ -246,7 +246,7 @@ class PlaceVolumeInfo extends PlaceInfo {
     getIcon() {
         return this._volume.get_symbolic_icon();
     }
-};
+}
 
 const DEFAULT_DIRECTORIES = [
     GLib.UserDirectory.DIRECTORY_DOCUMENTS,
@@ -278,7 +278,7 @@ var PlacesManager = class {
         this._connectVolumeMonitorSignals();
         this._updateMounts();
 
-        this._bookmarksFile = this._findBookmarksFile()
+        this._bookmarksFile = this._findBookmarksFile();
         this._bookmarkTimeoutId = 0;
         this._monitor = null;
 
diff --git a/extensions/user-theme/extension.js b/extensions/user-theme/extension.js
index a3e382b..24a34a7 100644
--- a/extensions/user-theme/extension.js
+++ b/extensions/user-theme/extension.js
@@ -65,7 +65,7 @@ class ThemeManager {
         Main.setThemeStylesheet(_stylesheet);
         Main.loadTheme();
     }
-};
+}
 
 function init() {
     return new ThemeManager();
diff --git a/extensions/window-list/extension.js b/extensions/window-list/extension.js
index dac843c..dcbf8c2 100644
--- a/extensions/window-list/extension.js
+++ b/extensions/window-list/extension.js
@@ -139,7 +139,7 @@ class WindowContextMenu extends PopupMenu.PopupMenu {
         this._metaWindow.disconnect(this._notifyMaximizedHId);
         this._metaWindow.disconnect(this._notifyMaximizedVId);
     }
-};
+}
 
 class WindowTitle {
     constructor(metaWindow) {
@@ -206,7 +206,7 @@ class WindowTitle {
         this._metaWindow.disconnect(this._notifyWmClass);
         this._metaWindow.disconnect(this._notifyAppId);
     }
-};
+}
 
 
 class BaseButton {
@@ -323,7 +323,7 @@ class BaseButton {
             global.display.disconnect(this._windowLeftMonitorId);
         this._windowLeftMonitorId = 0;
     }
-};
+}
 
 
 class WindowButton extends BaseButton {
@@ -397,7 +397,7 @@ class WindowButton extends BaseButton {
         global.display.disconnect(this._notifyFocusId);
         this._contextMenu.destroy();
     }
-};
+}
 
 
 class AppContextMenu extends PopupMenu.PopupMenu {
@@ -458,7 +458,7 @@ class AppContextMenu extends PopupMenu.PopupMenu {
 
         super.open(animate);
     }
-};
+}
 
 class AppButton extends BaseButton {
     constructor(app, perMonitor, monitorIndex) {
@@ -639,7 +639,7 @@ class AppButton extends BaseButton {
         this.app.disconnect(this._windowsChangedId);
         this._menu.destroy();
     }
-};
+}
 
 
 let WorkspaceIndicator = GObject.registerClass(
@@ -1188,7 +1188,7 @@ class WindowList {
         for (let i = 0; i < windows.length; i++)
             windows[i].metaWindow.set_icon_geometry(null);
     }
-};
+}
 
 class Extension {
     constructor() {
@@ -1243,7 +1243,7 @@ class Extension {
     someWindowListContains(actor) {
         return this._windowLists.some(list => list.actor.contains(actor));
     }
-};
+}
 
 function init() {
     return new Extension();
diff --git a/extensions/windowsNavigator/extension.js b/extensions/windowsNavigator/extension.js
index 4777e94..1af3f0b 100644
--- a/extensions/windowsNavigator/extension.js
+++ b/extensions/windowsNavigator/extension.js
@@ -14,7 +14,7 @@ function injectToFunction(parent, name, func) {
         if (ret === undefined)
             ret = func.apply(this, arguments);
         return ret;
-    }
+    };
     return origin;
 }
 
@@ -35,13 +35,13 @@ function enable() {
         this._text.raise_top();
         this._text.show();
         this._text.text = (this._windowClone.slotId + 1).toString();
-    }
+    };
     winInjections['showTooltip'] = undefined;
 
     Workspace.WindowOverlay.prototype.hideTooltip = function() {
         if (this._text && this._text.visible)
             this._text.hide();
-    }
+    };
     winInjections['hideTooltip'] = undefined;
 
     Workspace.Workspace.prototype.showTooltip = function() {
@@ -64,7 +64,7 @@ function enable() {
         this._tip.y = area.y;
         this._tip.show();
         this._tip.raise_top();
-    }
+    };
     workspaceInjections['showTooltip'] = undefined;
 
     Workspace.Workspace.prototype.hideTooltip = function() {
@@ -73,7 +73,7 @@ function enable() {
         if (!this._tip.get_parent())
             return;
         this._tip.hide();
-    }
+    };
     workspaceInjections['hideTooltip'] = undefined;
 
     Workspace.Workspace.prototype.getWindowWithTooltip = function(id) {
@@ -82,7 +82,7 @@ function enable() {
                 return this._windows[i].metaWindow;
         }
         return null;
-    }
+    };
     workspaceInjections['getWindowWithTooltip'] = undefined;
 
     Workspace.Workspace.prototype.showWindowsTooltips = function() {
@@ -90,7 +90,7 @@ function enable() {
             if (this._windowOverlays[i] != null)
                 this._windowOverlays[i].showTooltip();
         }
-    }
+    };
     workspaceInjections['showWindowsTooltips'] = undefined;
 
     Workspace.Workspace.prototype.hideWindowsTooltips = function() {
@@ -98,7 +98,7 @@ function enable() {
             if (this._windowOverlays[i] != null)
                 this._windowOverlays[i].hideTooltip();
         }
-    }
+    };
     workspaceInjections['hideWindowsTooltips'] = undefined;
 
     WorkspacesView.WorkspacesView.prototype._hideTooltips = function() {
@@ -107,7 +107,7 @@ function enable() {
         this._pickWindow = false;
         for (let i = 0; i < this._workspaces.length; i++)
             this._workspaces[i].hideWindowsTooltips();
-    }
+    };
     workViewInjections['_hideTooltips'] = undefined;
 
     WorkspacesView.WorkspacesView.prototype._hideWorkspacesTooltips = function() {
@@ -115,7 +115,7 @@ function enable() {
         this._pickWorkspace = false;
         for (let i = 0; i < this._workspaces.length; i++)
             this._workspaces[i].hideTooltip();
-    }
+    };
     workViewInjections['_hideWorkspacesTooltips'] = undefined;
 
     WorkspacesView.WorkspacesView.prototype._onKeyRelease = function(s, o) {
@@ -127,7 +127,7 @@ function enable() {
             (o.get_key_symbol() == Clutter.KEY_Control_L ||
              o.get_key_symbol() == Clutter.KEY_Control_R))
             this._hideWorkspacesTooltips();
-    }
+    };
     workViewInjections['_onKeyRelease'] = undefined;
 
     WorkspacesView.WorkspacesView.prototype._onKeyPress = function(s, o) {
@@ -208,7 +208,7 @@ function enable() {
             return true;
         }
         return false;
-    }
+    };
     workViewInjections['_onKeyPress'] = undefined;
 
     winInjections['_init'] = injectToFunction(Workspace.WindowOverlay.prototype, '_init', 
function(windowClone, parentActor) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]