Move #_transform() up.

This commit is contained in:
Jürg Lehni 2011-08-22 11:13:42 +02:00
parent a081419a8b
commit 3ca165f413

View file

@ -161,6 +161,13 @@ var View = this.View = PaperScopeItem.extend(/** @lends View# */{
return true;
},
_transform: function(matrix, flags) {
this._matrix.preConcatenate(matrix);
// Force recalculation of these values next time they are requested.
this._bounds = null;
this._inverse = null;
},
/**
* The underlying native canvas element.
*
@ -284,13 +291,6 @@ var View = this.View = PaperScopeItem.extend(/** @lends View# */{
this._transform(new Matrix().translate(Point.read(arguments).negate()));
},
_transform: function(matrix, flags) {
this._matrix.preConcatenate(matrix);
// Force recalculation of these values next time they are requested.
this._bounds = null;
this._inverse = null;
},
/**
* Draws the view.
*