From ef7beacd8b0ce5a9b872d16b1a08e8c381172064 Mon Sep 17 00:00:00 2001 From: sasensi Date: Sat, 17 Nov 2018 09:37:06 +0100 Subject: [PATCH] Fix several return values documentation --- src/core/PaperScript.js | 2 +- src/item/Item.js | 2 +- src/item/Project.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/PaperScript.js b/src/core/PaperScript.js index 6d7d79b5..f42b76ff 100644 --- a/src/core/PaperScript.js +++ b/src/core/PaperScript.js @@ -442,7 +442,7 @@ Base.exports.PaperScript = function() { * @param {String} code the PaperScript code * @param {PaperScope} scope the scope for which the code is executed * @param {Object} [option] the compilation options - * @return the exports defined in the executed code + * @return {Object} the exports defined in the executed code */ function execute(code, scope, options) { // Set currently active scope. diff --git a/src/item/Item.js b/src/item/Item.js index fa80bc29..dda67647 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -2832,7 +2832,7 @@ new function() { // Injection scope for hit-test functions shared with project * no children, a {@link TextItem} with no text content and a {@link Path} * with no segments all are considered empty. * - * @return Boolean + * @return {Boolean} */ isEmpty: function() { var children = this._children; diff --git a/src/item/Project.js b/src/item/Project.js index 8dbeef20..8f16e7b9 100644 --- a/src/item/Project.js +++ b/src/item/Project.js @@ -133,7 +133,7 @@ var Project = PaperScopeItem.extend(/** @lends Project# */{ /** * Checks whether the project has any content or not. * - * @return Boolean + * @return {Boolean} */ isEmpty: function() { return !this._children.length;