Skip to content

Commit d4ef3f1

Browse files
committed
Improve code comment.
1 parent f41ae41 commit d4ef3f1

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

animation/MojoJS.animation.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
/**
1717
* Animation object.
1818
*
19-
* @param {String | Array | NodeList | HTMLElement} targets
19+
* @param {String (selector) | Array<HTMLElement> | NodeList | HTMLElement} targets
2020
*/
2121
Animation = function(targets) {
2222
switch (typeof targets) {
@@ -606,7 +606,7 @@
606606
Animation.prototype = {
607607

608608
/**
609-
* Create Animation object and animate it.
609+
* Animate with config.
610610
*
611611
* @param {Object} animStyle
612612
* @return {Object} animation
@@ -697,7 +697,7 @@
697697
/**
698698
* Create Animation object.
699699
*
700-
* @param {String | Array | NodeList | HTMLElement} targets
700+
* @param {String (selector) | Array<HTMLElement> | NodeList | HTMLElement} targets
701701
* @return {Object} aniamtion
702702
*/
703703
window.MojoJS.createAnimation = function(targets) {

query/MojoJS.query.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,9 +1040,9 @@
10401040
/**
10411041
* Select HTMLElements by css seletor and context.
10421042
*
1043-
* @param {String} selector
1044-
* @param {String | HTMLElement | Array<HTMLElement> | NodeList} context (optional)
1045-
* @return {Array} HTMLElements Array
1043+
* @param {String} selector
1044+
* @param {String (selector) | HTMLElement | Array<HTMLElement> | NodeList} context (optional)
1045+
* @return {Array<HTMLElement>} HTMLElements
10461046
*/
10471047
window.MojoJS.query = function(selector, context) {
10481048
return parser.query(selector, context);

0 commit comments

Comments
 (0)