[gnome-shell/gnome-3-28] windowManager: Declare variables
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-28] windowManager: Declare variables
- Date: Fri, 31 Aug 2018 14:22:30 +0000 (UTC)
commit 98fb7c33f256e643d33caf72c5a082699617e39f
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Jul 13 21:32:33 2018 +0000
windowManager: Declare variables
Fixes warnings from GJS.
(cherry picked from commit 2f76951658e23c036c62bb2c1238fef0f136113a)
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 17576a07e..e05700f75 100644
--- a/js/ui/windowManager.js
+++ b/js/ui/windowManager.js
@@ -627,8 +627,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]