From 0d737bf73f6e09efa5adefb60887f4c846b74932 Mon Sep 17 00:00:00 2001
From: webchick <drupal@webchick.net>
Date: Fri, 28 Aug 2015 23:30:19 -0700
Subject: [PATCH] Issue #2531604 by eiriksm: JSDoc system module

---
 core/modules/system/js/system.date.js |  4 ++++
 core/modules/system/js/system.js      | 13 ++++++++++---
 2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/core/modules/system/js/system.date.js b/core/modules/system/js/system.date.js
index f679f269302d..75a7869b3b7a 100644
--- a/core/modules/system/js/system.date.js
+++ b/core/modules/system/js/system.date.js
@@ -13,6 +13,9 @@
    * Display the preview for date format entered.
    *
    * @type {Drupal~behavior}
+   *
+   * @prop {Drupal~behaviorAttach} attach
+   *   Attach behavior for previewing date formats on input elements.
    */
   Drupal.behaviors.dateFormat = {
     attach: function (context) {
@@ -30,6 +33,7 @@
        * Event handler that replaces date characters with value.
        *
        * @param {jQuery.Event} e
+       *   The jQuery event triggered.
        */
       function dateFormatHandler(e) {
         var baseValue = $(e.target).val() || '';
diff --git a/core/modules/system/js/system.js b/core/modules/system/js/system.js
index e052c3f207d3..cbfe4ea7b68d 100644
--- a/core/modules/system/js/system.js
+++ b/core/modules/system/js/system.js
@@ -11,11 +11,16 @@
   var ids = [];
 
   /**
-   * When a field is filled out, apply its value to other fields that will likely
-   * use the same value. In the installer this is used to populate the
+   * Attaches field copy behavior from input fields to other input fields.
+   *
+   * When a field is filled out, apply its value to other fields that will
+   * likely use the same value. In the installer this is used to populate the
    * administrator email address with the same value as the site email address.
    *
    * @type {Drupal~behavior}
+   *
+   * @prop {Drupal~behaviorAttach} attach
+   *   Attaches the field copy behavior to an input field.
    */
   Drupal.behaviors.copyFieldValue = {
     attach: function (context) {
@@ -60,9 +65,11 @@
     /**
      * Handler for a Blur event on a source field.
      *
-     * This event handler will trigger a 'value:copy' event on all dependent fields.
+     * This event handler will trigger a 'value:copy' event on all dependent
+     * fields.
      *
      * @param {jQuery.Event} e
+     *   The event triggered.
      */
     valueSourceBlurHandler: function (e) {
       var value = $(e.target).val();
-- 
GitLab