Fix syntax errors (that magically work on Safari).

This commit is contained in:
Jürg Lehni 2011-03-06 22:06:06 +00:00
parent 87981efeb5
commit 4c13ca6961

View file

@ -198,7 +198,7 @@ var Path = this.Path = PathItem.extend({
matrix = null;
first._transformCoordinates(matrix, prevCoords, false);
var min = prevCoords.slice(0, 2),
max = min.slice(0), // clone
max = min.slice(0); // clone
function processSegment(segment) {
segment._transformCoordinates(matrix, coords, false);
@ -365,7 +365,7 @@ var Path = this.Path = PathItem.extend({
ty = + Math.atan(b / Math.tan(phi)),
// Due to symetry, we don't need to cycle through pi * n
// solutions:
x = a * Math.cos(tx) * Math.cos(phi),
x = a * Math.cos(tx) * Math.cos(phi)
- b * Math.sin(tx) * Math.sin(phi),
y = b * Math.sin(ty) * Math.cos(phi)
+ a * Math.cos(ty) * Math.sin(phi);