Fix TODO in Matrix#scale().

This commit is contained in:
Jürg Lehni 2013-02-09 11:52:31 -08:00
parent cd9fc39f54
commit 2bb9153810

View file

@ -138,8 +138,7 @@ var Matrix = this.Matrix = Base.extend(/** @lends Matrix# */{
// Do not modify scale, center, since that would arguments of which
// we're reading from!
var _scale = Point.read(arguments),
_center = Point.read(arguments);
// TODO: Isn't center always set this way??
_center = Point.read(arguments, 0, 0, false, true); // readNull
if (_center)
this.translate(_center);
this._a *= _scale.x;