Skip to content

Commit

Permalink
Pushing compass changes from Gnome project to public bower repo
Browse files Browse the repository at this point in the history
  • Loading branch information
alexmiranda-NOAA committed Jul 31, 2014
1 parent 196e513 commit 9fff6d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions compass-rose-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

this.resetCanvas();

var newDirection = parseFloat(arg.direction);
var newSpeed = parseFloat(arg.speed);
var newDirection = parseInt(arg.direction);
var newSpeed = parseInt(arg.speed);
var coordinates = this.flipXY(this.polarToCartesian(newDirection, newSpeed));

coordinates.x *= this.frontcanv.px_per_unit;
Expand Down Expand Up @@ -308,7 +308,6 @@
y: ev.originalEvent.y
};
}

_this.drawArrow(coordinates);
});

Expand Down Expand Up @@ -351,4 +350,5 @@
});

};
})( jQuery );
})( jQuery );

2 changes: 1 addition & 1 deletion compass-rose-ui.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9fff6d0

Please sign in to comment.