Commit 49d68ceb authored by catch's avatar catch
Browse files

Issue #2894269 by droplet, Akram Khan, _pratik_, dylf, nod_, Cottser: `bool`...

Issue #2894269 by droplet, Akram Khan, _pratik_, dylf, nod_, Cottser: `bool` in JSDoc should be `boolean`

(cherry picked from commit 9b026e73870ad53464bf2c13c32c5bfc90a75fbb)
parent 13a19228
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -326,7 +326,7 @@
   *   Target of the Ajax request.
   * @prop {?string} [event]
   *   Event bound to settings.element which will trigger the Ajax request.
   * @prop {bool} [keypress=true]
   * @prop {boolean} [keypress=true]
   *   Triggers a request on keypress events.
   * @prop {?string} selector
   *   jQuery selector targeting the element to bind events to or used with
@@ -347,7 +347,7 @@
   *   Custom message to be used with the bar indicator.
   * @prop {object} [submit]
   *   Extra data to be sent with the Ajax request.
   * @prop {bool} [submit.js=true]
   * @prop {boolean} [submit.js=true]
   *   Allows the PHP side to know this comes from an Ajax request.
   * @prop {object} [dialog]
   *   Options for {@link Drupal.dialog}.
@@ -402,7 +402,7 @@
    this.commands = new Drupal.AjaxCommands();

    /**
     * @type {bool|number}
     * @type {boolean|number}
     */
    this.instanceIndex = false;

@@ -1217,7 +1217,7 @@
   * @prop {string} [selector]
   * @prop {string} [data]
   * @prop {object} [settings]
   * @prop {bool} [asterisk]
   * @prop {boolean} [asterisk]
   * @prop {string} [text]
   * @prop {string} [title]
   * @prop {string} [url]
@@ -1226,7 +1226,7 @@
   * @prop {string} [value]
   * @prop {string} [old]
   * @prop {string} [new]
   * @prop {bool} [merge]
   * @prop {boolean} [merge]
   * @prop {Array} [args]
   *
   * @see Drupal.AjaxCommands
@@ -1357,7 +1357,7 @@
     *   The JSON response object from the Ajax request.
     * @param {string} response.selector
     *   A jQuery selector string.
     * @param {bool} [response.asterisk]
     * @param {boolean} [response.asterisk]
     *   An optional CSS selector. If specified, an asterisk will be
     *   appended to the HTML inside the provided selector.
     * @param {number} [status]
@@ -1458,7 +1458,7 @@
     *   {@link Drupal.Ajax} object created by {@link Drupal.ajax}.
     * @param {object} response
     *   The response from the Ajax request.
     * @param {bool} response.merge
     * @param {boolean} response.merge
     *   Determines whether the additional settings should be merged to the
     *   global settings.
     * @param {object} response.settings
@@ -1655,7 +1655,7 @@
     *   The message text.
     * @param {string} response.messageOptions
     *   The options argument for Drupal.Message().add().
     * @param {bool} response.clearPrevious
     * @param {boolean} response.clearPrevious
     *   If true, clear previous messages.
     */
    message(ajax, response) {
+3 −3
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@
   * @param {object} event
   *   The event triggered.
   *
   * @return {bool}
   * @return {boolean}
   *   Whether to perform a search or not.
   */
  function searchHandler(event) {
@@ -154,7 +154,7 @@
  /**
   * Handles an autocompletefocus event.
   *
   * @return {bool}
   * @return {boolean}
   *   Always returns false.
   */
  function focusHandler() {
@@ -169,7 +169,7 @@
   * @param {object} ui
   *   The jQuery UI settings object.
   *
   * @return {bool}
   * @return {boolean}
   *   Returns false to indicate the event status.
   */
  function selectHandler(event, ui) {
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@
 *   The time period within which the callback function should only be
 *   invoked once. For example if the wait period is 250ms, then the callback
 *   will only be called at most 4 times per second.
 * @param {bool} immediate
 * @param {boolean} immediate
 *   Whether we wait at the beginning or end to execute the function.
 *
 * @return {function}
+2 −2
Original line number Diff line number Diff line
@@ -98,7 +98,7 @@
   * @param {number} [status]
   *   The HTTP status code.
   *
   * @return {bool|undefined}
   * @return {boolean|undefined}
   *   Returns false if there was no selector property in the response object.
   */
  Drupal.AjaxCommands.prototype.openDialog = function (ajax, response, status) {
@@ -162,7 +162,7 @@
   *   Object holding the server response.
   * @param {string} response.selector
   *   The selector of the dialog.
   * @param {bool} response.persist
   * @param {boolean} response.persist
   *   Whether to persist the dialog element or not.
   * @param {number} [status]
   *   The HTTP status code.
+1 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@
   *
   * @type {object}
   *
   * @prop {bool} [autoOpen=true]
   * @prop {boolean} [autoOpen=true]
   * @prop {string} [dialogClass='']
   * @prop {string} [buttonClass='button']
   * @prop {string} [buttonPrimaryClass='button--primary']
Loading