Skip to content

Commit 017c4b8

Browse files
author
JetLu
authored
remove useless variables
1 parent 71bb95e commit 017c4b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function Dot(row, col) {
3232
this.sy = this.y
3333
this.ax = 0
3434
this.ay = 0
35-
this.rate = .3 // a = f/m = kx/m = rate * x
35+
this.rate = .3 // a = f/m = kx/m = rate * x
3636
this.damping = .3 // 阻尼系数
3737
}
3838

@@ -43,7 +43,7 @@ Dot.prototype = {
4343
if (this.col == 0 || this.col == cols) return
4444

4545
let up, down, left, right,
46-
cx, cy, mAx, mAy
46+
cx, cy
4747

4848
up = dots[(this.row - 1) * (cols + 1) + this.col]
4949
down = dots[(this.row + 1) * (cols + 1) + this.col]

0 commit comments

Comments
 (0)