Closed (fixed)
Project:
Drupal core
Version:
10.1.x-dev
Component:
javascript
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
30 Nov 2017 at 08:15 UTC
Updated:
8 Dec 2022 at 14:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dawehnerWe reverted that before the commit in order to have a patch which was easier to understand. Of course your code is a bit better, but I'm wondering whether we could go through more code and apply these kind of optimizations.
Comment #4
joshmillerApplies cleanly, good
optimizationrefactorization.Comment #6
joshmillerRe-queued the test, it failed on composer for some reason?
Comment #7
alexpottIt'd be great to get answer to @dawehner's
Especially since the issue title makes someone expect a much larger patch.
If we want to focus on just this one - fine but the issue title needs fixing.
Comment #8
alexpottI guess we could do the same here:
And maybe here
Comment #9
dawehnerDo we know whether there is an eslint rule covering this?
Comment #15
nod_need reroll :)
Comment #16
Pooja Ganjage commentedHi,
Creating a patch for this issue.
Please review the patch.
Thanks.
Comment #17
Pooja Ganjage commentedComment #18
anmolgoyal74 commentedFixed CS issues.
Comment #19
Madhu kumar commentedapplied patch remove-return.patch and working as expected.
Comment #22
vikashsoni commentedPatch not working in drupal-9.3.x-dev
Needs to re-roll
giving error while going to apply patch #18
Comment #23
nod_At the moment patches are applied to the 10.x branch first so a patch or MR for that version is needed.
I'm ok with the change itself, just need the right version for the 10.x branch :)
Comment #24
tom kondaI rerolled the patch #18 for the 10.0.x branch.
Comment #25
smustgrave commentedNeeds a reroll for 10.1 now that es6 files are no longer used
Comment #26
akram khanreroll against 10.1 address #25
Comment #27
akram khanComment #28
nod_Went through all core calls of
.forEach()and.map()in JS files. Found one possible update in olivero but that's it. The rest would require more involved refactoring.Given that, RTBC it's small and painless to keep that scoped to ajax.js.
Comment #30
longwaveCommitted and pushed 8a3da3d43f to 10.1.x and 5ee487c087 to 10.0.x. Thanks!
Comment #31
longwave