diff options
author | webchick <drupal@webchick.net> | 2017-11-28 15:40:07 -0800 |
---|---|---|
committer | webchick <drupal@webchick.net> | 2017-11-28 15:40:07 -0800 |
commit | b0a4d7e0173be1f91e6bb6001e6186d2b580861d (patch) | |
tree | 059c95af2bd1ed504e09a8cde0156ab60e861753 /core/modules/system/js/system.es6.js | |
parent | 67207f792b24b92787b6435c60a7e68f3946df66 (diff) | |
download | drupal-b0a4d7e0173be1f91e6bb6001e6186d2b580861d.tar.gz drupal-b0a4d7e0173be1f91e6bb6001e6186d2b580861d.zip |
Issue #2925064 by drpal, dawehner, xjm, justafish, droplet: [1/2] JS codestyle: no-restricted-syntax
Diffstat (limited to 'core/modules/system/js/system.es6.js')
-rw-r--r-- | core/modules/system/js/system.es6.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/core/modules/system/js/system.es6.js b/core/modules/system/js/system.es6.js index 18153b09ec73..61a8b02aee5e 100644 --- a/core/modules/system/js/system.es6.js +++ b/core/modules/system/js/system.es6.js @@ -23,11 +23,7 @@ attach(context) { // List of fields IDs on which to bind the event listener. // Create an array of IDs to use with jQuery. - for (const sourceId in drupalSettings.copyFieldValue) { - if (drupalSettings.copyFieldValue.hasOwnProperty(sourceId)) { - ids.push(sourceId); - } - } + Object.keys(drupalSettings.copyFieldValue).forEach(ids.push); if (ids.length) { // Listen to value:copy events on all dependent fields. // We have to use body and not document because of the way jQuery events |