From 41dce862d4597ce3d08b0d5b551d7b3e3ebfcf57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 14 Jul 2016 10:21:11 +0200 Subject: [PATCH] Fix CompoundPath#getLastCurve() and improve documentation. --- src/path/CompoundPath.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/path/CompoundPath.js b/src/path/CompoundPath.js index d367fde6..201e3a7c 100644 --- a/src/path/CompoundPath.js +++ b/src/path/CompoundPath.js @@ -170,7 +170,8 @@ var CompoundPath = PathItem.extend(/** @lends CompoundPath# */{ }, /** - * The first Segment contained within the path. + * The first Segment contained within the compound-path, a short-cut to + * calling {@link Path#getFirstSegment()} on {@link Item#getFirstChild()}. * * @bean * @type Segment @@ -181,7 +182,8 @@ var CompoundPath = PathItem.extend(/** @lends CompoundPath# */{ }, /** - * The last Segment contained within the path. + * The last Segment contained within the compound-path, a short-cut to + * calling {@link Path#getLastSegment()} on {@link Item#getLastChild()}. * * @bean * @type Segment @@ -207,7 +209,8 @@ var CompoundPath = PathItem.extend(/** @lends CompoundPath# */{ }, /** - * The first Curve contained within the path. + * The first Curve contained within the compound-path, a short-cut to + * calling {@link Path#getFirstCurve()} on {@link Item#getFirstChild()}. * * @bean * @type Curve @@ -218,14 +221,15 @@ var CompoundPath = PathItem.extend(/** @lends CompoundPath# */{ }, /** - * The last Curve contained within the path. + * The last Curve contained within the compound-path, a short-cut to + * calling {@link Path#getLastCurve()} on {@link Item#getLastChild()}. * * @bean * @type Curve */ getLastCurve: function() { var last = this.getLastChild(); - return last && last.getFirstCurve(); + return last && last.getLastCurve(); }, /**