From d4ef3f1fda889ad2ecc0711be084840f3a36decd Mon Sep 17 00:00:00 2001 From: scottcgi Date: Tue, 10 Dec 2019 22:42:32 +0800 Subject: [PATCH] Improve code comment. --- animation/MojoJS.animation.js | 6 +++--- query/MojoJS.query.js | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/animation/MojoJS.animation.js b/animation/MojoJS.animation.js index 886e19c..fde3a08 100644 --- a/animation/MojoJS.animation.js +++ b/animation/MojoJS.animation.js @@ -16,7 +16,7 @@ /** * Animation object. * - * @param {String | Array | NodeList | HTMLElement} targets + * @param {String (selector) | Array | NodeList | HTMLElement} targets */ Animation = function(targets) { switch (typeof targets) { @@ -606,7 +606,7 @@ Animation.prototype = { /** - * Create Animation object and animate it. + * Animate with config. * * @param {Object} animStyle * @return {Object} animation @@ -697,7 +697,7 @@ /** * Create Animation object. * - * @param {String | Array | NodeList | HTMLElement} targets + * @param {String (selector) | Array | NodeList | HTMLElement} targets * @return {Object} aniamtion */ window.MojoJS.createAnimation = function(targets) { diff --git a/query/MojoJS.query.js b/query/MojoJS.query.js index 76c87a7..9b221ec 100644 --- a/query/MojoJS.query.js +++ b/query/MojoJS.query.js @@ -1040,9 +1040,9 @@ /** * Select HTMLElements by css seletor and context. * - * @param {String} selector - * @param {String | HTMLElement | Array | NodeList} context (optional) - * @return {Array} HTMLElements Array + * @param {String} selector + * @param {String (selector) | HTMLElement | Array | NodeList} context (optional) + * @return {Array} HTMLElements */ window.MojoJS.query = function(selector, context) { return parser.query(selector, context);