mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-13 16:33:28 -04:00
Simplify Path#arcTo() arguments check.
This commit is contained in:
parent
bac579d85b
commit
f6b2672f08
1 changed files with 1 additions and 1 deletions
|
@ -1746,7 +1746,7 @@ var Path = this.Path = PathItem.extend({
|
|||
// Get the start point:
|
||||
var current = getCurrentSegment(this),
|
||||
through;
|
||||
if (arguments[1] && typeof arguments[1] !== 'boolean') {
|
||||
if (typeof clockwise !== 'boolean') {
|
||||
through = Point.read(arguments, 0, 1);
|
||||
to = Point.read(arguments, 1, 1);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue