Skip to content

Commit

Permalink
Fix no-undef lint in src/plugins/dragresize_ie11.js
Browse files Browse the repository at this point in the history
```
src/plugins/dragresize_ie.js
  1410:5   error  'moveRatio' is not defined           no-undef
```

This is another "no-undef" "bug" but not like the ones in #1025
and #1026. Here we have something that is missing a `let` keyword, but
it turns out variable is unused anyway, so I just removed it.

Last use was removed in d6145d2, I believe.

Test plan: `npm run dev && npm run test && npm run start`

Related: #990
  • Loading branch information
wincent committed Jan 29, 2019
1 parent 6e0e524 commit 39d4d18
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/plugins/dragresize_ie11.js
Original file line number Diff line number Diff line change
Expand Up @@ -1415,9 +1415,6 @@
moveDiffX = nativeEvt.screenX - startX;
moveDiffY = startY - nativeEvt.screenY;

// This is the aspect ratio of the move difference.
moveRatio = Math.abs(moveDiffX / moveDiffY);

// Resize with NE, SE drag handles
if (factorX == 1) {
if (moveDiffX <= 0) {
Expand Down

0 comments on commit 39d4d18

Please sign in to comment.