mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Minor code clean up.
No need to set reference again, since we're directly modifying it.
This commit is contained in:
parent
dbd3eff84b
commit
2249f09223
1 changed files with 2 additions and 3 deletions
|
@ -1830,8 +1830,7 @@ function(name) {
|
||||||
// Calling _changed will clear _bounds and _position, but depending
|
// Calling _changed will clear _bounds and _position, but depending
|
||||||
// on matrix we can calculate and set them again.
|
// on matrix we can calculate and set them again.
|
||||||
var bounds = this._bounds,
|
var bounds = this._bounds,
|
||||||
position = this._position,
|
position = this._position;
|
||||||
children = this._children;
|
|
||||||
// Simply preconcatenate the internal matrix with the passed one:
|
// Simply preconcatenate the internal matrix with the passed one:
|
||||||
this._matrix.preConcatenate(matrix);
|
this._matrix.preConcatenate(matrix);
|
||||||
if (this._transform)
|
if (this._transform)
|
||||||
|
@ -1849,7 +1848,7 @@ function(name) {
|
||||||
// in _bounds and transform each.
|
// in _bounds and transform each.
|
||||||
for (var key in bounds) {
|
for (var key in bounds) {
|
||||||
var rect = bounds[key];
|
var rect = bounds[key];
|
||||||
bounds[key] = matrix._transformBounds(rect, rect);
|
matrix._transformBounds(rect, rect);
|
||||||
}
|
}
|
||||||
// If we have cached 'bounds', update _position again as its
|
// If we have cached 'bounds', update _position again as its
|
||||||
// center. We need to take into account _boundsType here too, in
|
// center. We need to take into account _boundsType here too, in
|
||||||
|
|
Loading…
Reference in a new issue