BookingBug / javascript-styleguide

JavaScript Style Guide
MIT License
0 stars 0 forks source link

Callback naming convention #4

Open PiotrSiatkowski opened 7 years ago

PiotrSiatkowski commented 7 years ago

I cannot find any convention for callbacks in current guidelines. What do you guys propose? The one I can think of are using 'on' prefix like onClick (but what tense onClick or onClicked) or prefix 'when'. There is also a convention with past participle like: done, finished and so on.