From b50df3400a5709899c8c325ab97c0660dad69b9b Mon Sep 17 00:00:00 2001 From: buzz-lightsnack-2007 <73412182+buzz-lightsnack-2007@users.noreply.github.com> Date: Fri, 25 Oct 2024 11:17:01 +0800 Subject: [PATCH] add comment in save() --- src/scripts/data/product.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/scripts/data/product.js b/src/scripts/data/product.js index 3862df6..0839f16 100644 --- a/src/scripts/data/product.js +++ b/src/scripts/data/product.js @@ -51,6 +51,12 @@ export default class product { }; } + /* + Save the product data to the storage. + + @options {object} the options + @return {boolean} the status of the save + */ async save(options = {}) { // Set the default options. options = Object.assign({}, this.#options, options);