Skip to content

Commit

Permalink
Improve code comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottcgi committed Dec 10, 2019
1 parent f41ae41 commit d4ef3f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions animation/MojoJS.animation.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* Animation object.
*
* @param {String | Array | NodeList | HTMLElement} targets
* @param {String (selector) | Array<HTMLElement> | NodeList | HTMLElement} targets
*/
Animation = function(targets) {
switch (typeof targets) {
Expand Down Expand Up @@ -606,7 +606,7 @@
Animation.prototype = {

/**
* Create Animation object and animate it.
* Animate with config.
*
* @param {Object} animStyle
* @return {Object} animation
Expand Down Expand Up @@ -697,7 +697,7 @@
/**
* Create Animation object.
*
* @param {String | Array | NodeList | HTMLElement} targets
* @param {String (selector) | Array<HTMLElement> | NodeList | HTMLElement} targets
* @return {Object} aniamtion
*/
window.MojoJS.createAnimation = function(targets) {
Expand Down
6 changes: 3 additions & 3 deletions query/MojoJS.query.js
Original file line number Diff line number Diff line change
Expand Up @@ -1040,9 +1040,9 @@
/**
* Select HTMLElements by css seletor and context.
*
* @param {String} selector
* @param {String | HTMLElement | Array<HTMLElement> | NodeList} context (optional)
* @return {Array} HTMLElements Array
* @param {String} selector
* @param {String (selector) | HTMLElement | Array<HTMLElement> | NodeList} context (optional)
* @return {Array<HTMLElement>} HTMLElements
*/
window.MojoJS.query = function(selector, context) {
return parser.query(selector, context);
Expand Down

0 comments on commit d4ef3f1

Please # to comment.