Shorten code a bit.

This commit is contained in:
Jürg Lehni 2011-03-05 21:08:32 +00:00
parent 4dbba5f806
commit af909238eb

View file

@ -350,12 +350,7 @@ var Matrix = this.Matrix = Base.extend({
tr = bounds.getTopRight(), tr = bounds.getTopRight(),
br = bounds.getBottomRight(), br = bounds.getBottomRight(),
bl = bounds.getBottomLeft(), bl = bounds.getBottomLeft(),
coords = [ coords = [ tl.x, tl.y, tr.x, tr.y, br.x, br.y, bl.x, bl.y ];
tl.x, tl.y,
tr.x, tr.y,
br.x, br.y,
bl.x, bl.y
];
this.transform(coords, 0, coords, 0, 4); this.transform(coords, 0, coords, 0, 4);
// Loop through all x and y coordinates and update min and max values. // Loop through all x and y coordinates and update min and max values.
// Start with the first coordinate pair for both (coords.slice(0, 2)). // Start with the first coordinate pair for both (coords.slice(0, 2)).