From 45f5bf84e8f05db0b513f786bd75240c2e924166 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 12 Feb 2017 12:15:59 +0100 Subject: [PATCH] Enforce creation of Curve#values getter despite hidden parameter. --- src/path/Curve.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/path/Curve.js b/src/path/Curve.js index 518162a0..7a95026a 100644 --- a/src/path/Curve.js +++ b/src/path/Curve.js @@ -26,6 +26,9 @@ */ var Curve = Base.extend(/** @lends Curve# */{ _class: 'Curve', + // Enforce creation of beans, as some bean getters have hidden parameters. + // See #getValues() below. + beans: true, /** * Creates a new curve object. @@ -381,8 +384,8 @@ var Curve = Base.extend(/** @lends Curve# */{ for (var i = 0; i < 8; i += 2) points.push(new Point(coords[i], coords[i + 1])); return points; - }, - + } +}, /** @lends Curve# */{ /** * The approximated length of the curve. *