mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-27 22:29:11 -04:00
Revert readNull and clone parameter sequence in arguments reading code.
This commit is contained in:
parent
2e565dcfce
commit
ce7d584c05
7 changed files with 18 additions and 17 deletions
src/basic
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue