Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

get rid of ternaries that don't do anything #3

Open
wants to merge 1 commit into from

1 participant

Lyle Underwood
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 17, 2011
  1. Lyle Underwood
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 js/main.js
4 js/main.js
View
@@ -134,8 +134,8 @@ $(function() {
var d = Math.sqrt(dd);
if (d < 150) {
- point.targetPos.x = (this.mousePos.x < point.curPos.x) ? point.curPos.x - dx : point.curPos.x - dx;
- point.targetPos.y = (this.mousePos.y < point.curPos.y) ? point.curPos.y - dy : point.curPos.y - dy;
+ point.targetPos.x = point.curPos.x - dx;
+ point.targetPos.y = point.curPos.y - dy;
} else {
point.targetPos.x = point.originalPos.x;
point.targetPos.y = point.originalPos.y;
Something went wrong with that request. Please try again.