diff --git a/src/path/Path.js b/src/path/Path.js index 9fdb762f..62a11f18 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -51,8 +51,8 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{ // Support both passing of segments as array or arguments // If it is an array, it can also be a description of a point, so // check its first entry for object as well - this.setSegments(!segments || !Array.isArray(segments) - || typeof segments[0] !== 'object' ? arguments : segments); + this.setSegments(Array.isArray(segments) + && typeof segments[0] === 'object' ? segments : arguments); }, clone: function() {