Skip to content

Commit

Permalink
MDL-71113 js: Bare minimum fixes to build jsdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Jun 18, 2021
1 parent 1a62c82 commit 70dcc60
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion blocks/timeline/amd/build/event_list.min.js.map

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions blocks/timeline/amd/src/event_list.js
Expand Up @@ -18,7 +18,6 @@
* given day range.
*
* @module block_timeline/event_list
* @package block_timeline
* @copyright 2016 Ryan Wyllie <ryan@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down Expand Up @@ -174,9 +173,9 @@ function(
* @param {Number} limit Limit the result set to this number of items
* @param {Number} daysOffset How many days (from midnight) to offset the results from
* @param {int|undefined} daysLimit How many dates (from midnight) to limit the result to
* @param {int|falsey} lastId The ID of the last seen event (if any)
* @param {int|false} lastId The ID of the last seen event (if any)
* @param {int|undefined} courseId Course ID to restrict events to
* @return {promise} A jquery promise
* @return {Promise} A jquery promise
*/
var load = function(midnight, limit, daysOffset, daysLimit, lastId, courseId) {
var startTime = midnight + (daysOffset * SECONDS_IN_DAY);
Expand Down
2 changes: 1 addition & 1 deletion mod/forum/amd/build/local/grades/grader.min.js.map

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions mod/forum/amd/src/local/grades/grader.js
Expand Up @@ -17,7 +17,6 @@
* This module will tie together all of the different calls the gradable module will make.
*
* @module mod_forum/local/grades/grader
* @package mod_forum
* @copyright 2019 Mathew May <mathew.solutions>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down Expand Up @@ -65,7 +64,7 @@ const displayUserPicker = (root, html) => {
*
* @param {String} html
* @param {String} js
* @return {[*, *]}
* @returns {array} An array containing the HTML, and JS.
*/
const fetchContentFromRender = (html, js) => {
return [html, js];
Expand Down
2 changes: 1 addition & 1 deletion mod/lti/amd/build/contentitem.min.js.map

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions mod/lti/amd/src/contentitem.js
Expand Up @@ -21,7 +21,6 @@
*
* @module mod_lti/contentitem
* @class contentitem
* @package mod_lti
* @copyright 2016 Jun Pataleta <jun@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @since 3.2
Expand Down Expand Up @@ -89,8 +88,6 @@ define(

/**
* Array of form fields for LTI tool configuration.
*
* @type {*[]}
*/
var ltiFormFields = [
new FormField('name', FormField.TYPES.TEXT, false, ''),
Expand Down
2 changes: 1 addition & 1 deletion payment/amd/build/repository.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions payment/amd/src/repository.js
Expand Up @@ -17,20 +17,27 @@
* Repository for payment subsystem.
*
* @module core_payment/repository
* @package core_payment
* @copyright 2020 Shamim Rezaie <shamim@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

import Ajax from 'core/ajax';

/**
* @typedef {Object} PaymentGateway A Payment Gateway
* @property {string} shortname
* @property {string} name
* @property {string} description
*/

/**
* Returns the list of gateways that can process payments in the given currency.
*
* @method getAvailableGateways
* @param {string} component
* @param {string} paymentArea
* @param {number} itemId
* @returns {Promise<{shortname: string, name: string, description: String}[]>}
* @returns {Promise<PaymentGateway[]>}
*/
export const getAvailableGateways = (component, paymentArea, itemId) => {
const request = {
Expand Down
2 changes: 1 addition & 1 deletion question/type/ddmarker/amd/build/shapes.min.js.map

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions question/type/ddmarker/amd/src/shapes.js
Expand Up @@ -21,7 +21,6 @@
* These classes can represent shapes, let you alter them, can go to and from a string
* representation, and can give you an SVG representation.
*
* @package qtype_ddmarker
* @subpackage shapes
* @copyright 2018 The Open University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Expand Down Expand Up @@ -218,7 +217,7 @@ define(function() {
/**
* Get the handles that should be offered to edit this shape, or null if not appropriate.
*
* @return {[Object]} with properties moveHandle {Point} and editHandles {Point[]}
* @return {Object[]} with properties moveHandle {Point} and editHandles {Point[]}
*/
Shape.prototype.getHandlePositions = function() {
return null;
Expand Down

0 comments on commit 70dcc60

Please sign in to comment.