Remove unnecessary .0 since numbers are all the same in JavaScript.

This commit is contained in:
Jürg Lehni 2011-04-28 13:13:33 +01:00
parent 0d697403b5
commit 115ef45464
2 changed files with 3 additions and 3 deletions

View file

@ -172,7 +172,7 @@ var Point = this.Point = Base.extend({
}
} else {
var scale = length / this.getLength();
if (scale == 0.0) {
if (scale == 0) {
// Calculate angle now, so it will be preserved even when
// x and y are 0
this.getAngle();

View file

@ -463,7 +463,7 @@ var Path = this.Path = PathItem.extend({
// Decomposition and forward substitution.
for (var i = 1; i < n; i++) {
tmp[i] = 1 / b;
b = (i < n - 1 ? 4.0 : 2.0) - tmp[i];
b = (i < n - 1 ? 4 : 2) - tmp[i];
x[i] = (rhs[i] - x[i - 1]) / b;
}
// Back-substitution.
@ -718,7 +718,7 @@ var Path = this.Path = PathItem.extend({
diff -= Math.PI * 2;
extent -= angle;
if (extent <= 0.0)
if (extent <= 0)
extent += Math.PI * 2;
if (diff < 0) extent = Math.PI * 2 - extent;