windowManager: Declare variables

Fixes warnings from GJS.


(cherry picked from commit 2f76951658)
This commit is contained in:
Carlos Garnacho 2018-07-13 21:32:33 +00:00 committed by Marco Trevisan
parent 4dfc2e0fd1
commit 98fb7c33f2

View File

@ -627,8 +627,8 @@ var AppSwitchAction = new Lang.Class({
if (this.get_n_current_points() == 3) { if (this.get_n_current_points() == 3) {
for (let i = 0; i < this.get_n_current_points(); i++) { for (let i = 0; i < this.get_n_current_points(); i++) {
[startX, startY] = this.get_press_coords(i); let [startX, startY] = this.get_press_coords(i);
[x, y] = this.get_motion_coords(i); let [x, y] = this.get_motion_coords(i);
if (Math.abs(x - startX) > MOTION_THRESHOLD || if (Math.abs(x - startX) > MOTION_THRESHOLD ||
Math.abs(y - startY) > MOTION_THRESHOLD) Math.abs(y - startY) > MOTION_THRESHOLD)