[gnome-shell/wip/carlosg/interactive-workspace-switching: 2/4] windowManager: Declare variables
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/interactive-workspace-switching: 2/4] windowManager: Declare variables
- Date: Mon, 30 Jul 2018 21:23:31 +0000 (UTC)
commit 2f76951658e23c036c62bb2c1238fef0f136113a
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Jul 13 23:32:33 2018 +0200
windowManager: Declare variables
Fixes warnings from GJS.
js/ui/windowManager.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js
index b831071a0..02d5f9029 100644
--- a/js/ui/windowManager.js
+++ b/js/ui/windowManager.js
@@ -635,8 +635,8 @@ var AppSwitchAction = new Lang.Class({
if (this.get_n_current_points() == 3) {
for (let i = 0; i < this.get_n_current_points(); i++) {
- [startX, startY] = this.get_press_coords(i);
- [x, y] = this.get_motion_coords(i);
+ let [startX, startY] = this.get_press_coords(i);
+ let [x, y] = this.get_motion_coords(i);
if (Math.abs(x - startX) > MOTION_THRESHOLD ||
Math.abs(y - startY) > MOTION_THRESHOLD)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]