Clean up calculateBounds().

This commit is contained in:
Jürg Lehni 2011-03-06 18:33:52 +00:00
parent 836da3ce47
commit 4070f98374

View file

@ -221,8 +221,10 @@ var Path = this.Path = PathItem.extend({
var segments = that._segments, first = segments[0];
if (!first)
return null;
var min = first._point.clone(), max = min.clone(),
coords = ['x', 'y'], prev = first;
var min = first._point.clone(),
max = min.clone(),
prev = first,
coords = ['x', 'y'];
function processSegment(segment) {
for (var i = 0; i < 2; i++) {
var coord = coords[i];