Simplify Path#arcTo() arguments check.

This commit is contained in:
Jürg Lehni 2011-06-14 09:00:25 +01:00
parent bac579d85b
commit f6b2672f08

View file

@ -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 {