diff options
author | xjm <xjm@65776.no-reply.drupal.org> | 2017-12-01 13:28:53 -0600 |
---|---|---|
committer | xjm <xjm@65776.no-reply.drupal.org> | 2017-12-01 13:28:53 -0600 |
commit | dcfee314ad7c7fecbfe6682aac7a4d2db3beac8f (patch) | |
tree | 670e032e277b6f8ec6f19f7edc52267830f61cc5 /core/modules/system/js/system.js | |
parent | f7e2d52e5c2784bbae031438ee4a934be2007a29 (diff) | |
download | drupal-dcfee314ad7c7fecbfe6682aac7a4d2db3beac8f.tar.gz drupal-dcfee314ad7c7fecbfe6682aac7a4d2db3beac8f.zip |
Revert "Issue #2925064 by drpal, dawehner, xjm, justafish, droplet: [1/2] JS codestyle: no-restricted-syntax"
This reverts commit b0a4d7e0173be1f91e6bb6001e6186d2b580861d.
Diffstat (limited to 'core/modules/system/js/system.js')
-rw-r--r-- | core/modules/system/js/system.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/modules/system/js/system.js b/core/modules/system/js/system.js index dc66b5c18ace..d62cc0744630 100644 --- a/core/modules/system/js/system.js +++ b/core/modules/system/js/system.js @@ -10,7 +10,11 @@ Drupal.behaviors.copyFieldValue = { attach: function attach(context) { - Object.keys(drupalSettings.copyFieldValue).forEach(ids.push); + for (var sourceId in drupalSettings.copyFieldValue) { + if (drupalSettings.copyFieldValue.hasOwnProperty(sourceId)) { + ids.push(sourceId); + } + } if (ids.length) { $('body').once('copy-field-values').on('value:copy', this.valueTargetCopyHandler); |