-
Notifications
You must be signed in to change notification settings - Fork 778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Moving to arrow functions #2201
Conversation
Good work `going on ... I will test the various files changed |
@fakela Thanks. That would be really helpful. |
Possible errors that might creep in include:
This can be used as a reference to track down possible errors, both by me and people reviewing. |
Maybe hold off working on js/blocks/* until #2196 lands. Otherwise, I imagine conflicts galore. |
I was thinking the same thing earlier today. Will hold it off. |
@walterbender Removed conflicts for now. ( Over 200 of them were present ). I think the work should be straightforward from here, touching only those files which keep getting merged as part of #2192 On that note, inside |
I'm testing blocks mainly using the uber project used for testing Block API. |
Sorry about the conflicts. I accidentally merged something. Thanks for sorting it out. |
@aviral243 Please do the same thing for js/widgets and js/utils as you have done for blocks ,so none of us would have merge conflicts. |
@walterbender Not an issue there. They were mostly easy to resolve.
Now following this strictly. |
ee27f39
to
6dbf9d1
Compare
Action, Boolean, Boxes, Drum, Ensemble, Extras, Flow, Graphics, Heap, Intervals
Media, Meter, Number, Ornament, Pen, Pitch, RhythmPalette, Rhythm, Sensors, Tone, Volume, Widget
Fixes Use arrow functions instead instead of normal ones #2198
All functions that are called somewhere have been converted. However, functions used as a constructor e.g
HelpWidget()
should remain as it is because arrow functions cannot be used as constructors.I've also removed
this
binding wherever possible.Regarding testing: I've tried to test each file after conversion but try reporting any errors that might show up.