From 160f3d55c7fe0ddb07fbb309e96d3f216d073817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 17 May 2011 13:43:10 +0100 Subject: [PATCH] Make View#transform() private. --- src/ui/View.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui/View.js b/src/ui/View.js index 0f653682..1ba91e7a 100644 --- a/src/ui/View.js +++ b/src/ui/View.js @@ -144,12 +144,12 @@ var View = this.View = Base.extend({ setZoom: function(zoom) { // TODO: Clamp the view between 1/32 and 64, just like Illustrator? - this.transform(new Matrix().scale(zoom / this._zoom, this.getCenter())); + this._transform(new Matrix().scale(zoom / this._zoom, this.getCenter())); this._zoom = zoom; }, scrollBy: function(point) { - this.transform(new Matrix().translate(Point.read(arguments).negate())); + this._transform(new Matrix().translate(Point.read(arguments).negate())); }, draw: function() { @@ -184,7 +184,7 @@ var View = this.View = Base.extend({ return !!res.length; }, - transform: function(matrix, flags) { + _transform: function(matrix, flags) { this._matrix.preConcatenate(matrix); // Force recalculation of these values next time they are requested. this._bounds = null;