Revert readNull and clone parameter sequence in arguments reading code.

This commit is contained in:
Jürg Lehni 2013-06-11 19:49:35 -07:00
parent 2e565dcfce
commit ce7d584c05
7 changed files with 18 additions and 17 deletions
src/basic

View file

@ -158,7 +158,7 @@ var 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, 0, 0, false, true); // readNull
_center = Point.read(arguments, 0, 0, true); // readNull
if (_center)
this.translate(_center);
this._a *= _scale.x;
@ -263,7 +263,7 @@ var Matrix = Base.extend(/** @lends Matrix# */{
// Do not modify point, center, since that would arguments of which
// we're reading from!
var _point = Point.read(arguments),
_center = Point.read(arguments, 0, 0, false, true); // readNull
_center = Point.read(arguments, 0, 0, true); // readNull
if (_center)
this.translate(_center);
var a = this._a,