diff options
author | catch <catch@35733.no-reply.drupal.org> | 2020-10-21 11:41:33 +0100 |
---|---|---|
committer | catch <catch@35733.no-reply.drupal.org> | 2020-10-21 11:41:33 +0100 |
commit | 89f6acb734e93d22468e25f59e0bf59ca2d8aaa5 (patch) | |
tree | d594c0079c7c557feb5fbcbb76c3a67eca744d8f /core/modules/system/js/system.es6.js | |
parent | da115f6ccffb6c9aeb368b56b8664332968a65e6 (diff) | |
download | drupal-89f6acb734e93d22468e25f59e0bf59ca2d8aaa5.tar.gz drupal-89f6acb734e93d22468e25f59e0bf59ca2d8aaa5.zip |
Issue #3174884 by raman.b, alexpott, lauriii, zrpnr, nod_: Update yarn dependencies for Drupal 9.1.0
Diffstat (limited to 'core/modules/system/js/system.es6.js')
-rw-r--r-- | core/modules/system/js/system.es6.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/core/modules/system/js/system.es6.js b/core/modules/system/js/system.es6.js index 62b415dad9a8..e6e1e7ab03f7 100644 --- a/core/modules/system/js/system.es6.js +++ b/core/modules/system/js/system.es6.js @@ -3,7 +3,7 @@ * System behaviors. */ -(function($, Drupal, drupalSettings) { +(function ($, Drupal, drupalSettings) { // Cache IDs in an array for ease of use. const ids = []; @@ -23,7 +23,7 @@ attach(context) { // List of fields IDs on which to bind the event listener. // Create an array of IDs to use with jQuery. - Object.keys(drupalSettings.copyFieldValue || {}).forEach(element => { + Object.keys(drupalSettings.copyFieldValue || {}).forEach((element) => { ids.push(element); }); @@ -42,9 +42,7 @@ }, detach(context, settings, trigger) { if (trigger === 'unload' && ids.length) { - $('body') - .removeOnce('copy-field-values') - .off('value:copy'); + $('body').removeOnce('copy-field-values').off('value:copy'); $(`#${ids.join(', #')}`) .removeOnce('copy-field-values') .off('blur'); |