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(),
br = bounds.getBottomRight(),
bl = bounds.getBottomLeft(),
coords = [
tl.x, tl.y,
tr.x, tr.y,
br.x, br.y,
bl.x, bl.y
];
coords = [ tl.x, tl.y, tr.x, tr.y, br.x, br.y, bl.x, bl.y ];
this.transform(coords, 0, coords, 0, 4);
// 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)).