Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
javascript
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 Dec 2014 at 11:56 UTC
Updated:
29 Dec 2014 at 17:34 UTC
Jump to comment: Most recent
Comments
Comment #1
amateescu commentedI have to admit I haven't looked for a documentation page on d.o that describes our JS standards when I wrote that patch. Thanks for the follow-up, good to know in the future :)
Comment #2
yched commented@nod_: I was wondering, what's our recommended way of using once() ?
or
?
Comment #3
nod_#1, less function nesting, and we usually select only 1 element and do stuff with it. There is a case for .each() sometimes but it's not that often.
Comment #4
yched commented@nod_: makes sense, thks :-)
RTBC +1
Comment #5
webchickGood catch, thanks!
Committed and pushed to 8.0.x.