From fec25a121de312b5cfa38a973a9a1b63f5fa9957 Mon Sep 17 00:00:00 2001 From: Bojan Hribernik Date: Mon, 28 Nov 2022 22:00:11 +0100 Subject: [PATCH] Pass props to Path constructor in createPath --- src/path/Path.Constructors.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/path/Path.Constructors.js b/src/path/Path.Constructors.js index 31400125d..88a586774 100644 --- a/src/path/Path.Constructors.js +++ b/src/path/Path.Constructors.js @@ -22,11 +22,7 @@ Path.inject({ statics: new function() { function createPath(segments, closed, args) { var props = Base.getNamed(args), - path = new Path(props && ( - props.insert == true ? Item.INSERT - : props.insert == false ? Item.NO_INSERT - : null - )); + path = new Path(props); path._add(segments); // No need to use setter for _closed since _add() called _changed(). path._closed = closed;