Skip to content

Commit

Permalink
docs: Fix a few typos (#922)
Browse files Browse the repository at this point in the history
  • Loading branch information
timgates42 authored Nov 5, 2021
1 parent 993ff84 commit 5b0292d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/js/common/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ model = {
/**
* string trim
* @param {string} str string to trim
* @returns {string} trimed string
* @returns {string} trimmed string
*/
trim: function(str) {
return str.replace(spaceRx, '');
Expand Down
4 changes: 2 additions & 2 deletions src/js/common/point.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ Point.prototype.ceil = function() {
};

/**
* Ceil self coodinates.
* Ceil self coordinates.
* @returns {Point} Point calculated.
*/
Point.prototype._ceil = function() {
Expand Down Expand Up @@ -330,7 +330,7 @@ Point.prototype.toString = function() {
};

/**
* Return coodinates to array. [x, y]
* Return coordinates to array. [x, y]
* @returns {number[]} coordinate array.
*/
Point.prototype.toArray = function() {
Expand Down
4 changes: 2 additions & 2 deletions src/js/common/timezone.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var STANDARD_TO_DST = 1;
var DST_TO_STANDARD = -1;

/**
* Get the timezone offset by timestampe
* Get the timezone offset by timestamp
* @param {number} timestamp - timestamp
* @returns {number} timezone offset
* @private
Expand All @@ -52,7 +52,7 @@ function getTimezoneOffset(timestamp) {
}

/**
* Get the custome timezone offset by timestampe
* Get the custom timezone offset by timestamp
* @param {number} timestamp - timestamp
* @returns {number} timezone offset
* @private
Expand Down
6 changes: 3 additions & 3 deletions src/js/handler/month/guide.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ MonthGuide.prototype._getCoordByDate = function(date) {
};

/**
* Get limited coordinate by supplied coodinates
* Get limited coordinate by supplied coordinates
* @param {number[]} coord - coordinate need to limit
* @param {number[]} [min] - minimum limitaion of coordinate
* @param {number[]} [min] - minimum limitation of coordinate
* @param {number[]} [max] - maximum limitation of coordinate
* @returns {number[]} limited coordiate
*/
Expand Down Expand Up @@ -362,7 +362,7 @@ MonthGuide.prototype._removeGuideElements = function(yCoords) {

/**
* Get excluded numbers in range
* @param {number[]} range - the range. value must be sequencial.
* @param {number[]} range - the range. value must be sequential.
* @param {number[]} numbers - numbers to check
* @returns {number[]} excluded numbers
*/
Expand Down
2 changes: 1 addition & 1 deletion src/js/view/popup/scheduleCreationPopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ ScheduleCreationPopup.prototype._setDatepickerState = function(newState) {
};

/**
* Set popup position and arrow direction to apear near guide element
* Set popup position and arrow direction to appear near guide element
* @param {MonthCreationGuide|TimeCreationGuide|DayGridCreationGuide} guideBound - creation guide element
*/
ScheduleCreationPopup.prototype._setPopupPositionAndArrowDirection = function(guideBound) {
Expand Down
2 changes: 1 addition & 1 deletion src/js/view/popup/scheduleDetailPopup.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ ScheduleDetailPopup.prototype._getScheduleModel = function(scheduleViewModel) {
};

/**
* Set popup position and arrow direction to apear near guide element
* Set popup position and arrow direction to appear near guide element
* @param {Event} event - creation guide element
*/
ScheduleDetailPopup.prototype._setPopupPositionAndArrowDirection = function(event) {
Expand Down

0 comments on commit 5b0292d

Please sign in to comment.