-
Notifications
You must be signed in to change notification settings - Fork 823
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
callback to arrow function #2634
Conversation
If not yet complete ... please mark as draft PR. |
Sir,Please check some of my changes,if that is okay,I'll continue rest of my work.Please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace all instance of that
with this
inside the arrow fn. If no more references remain, remove the declaration of that
itself.
Fixed the merge conflict for you. Please get rid of the remaining instances of |
In callbacks, there is no 'that' instances are left sir @meganindya .I have did it before.or I am supposed to do it in whole js files with every instance of that. |
@meganindya , Sir In my first commits I have not did remove that's but in latter commits I have did it all.Please review this sir. |
<<<<<<< HEAD | ||
<<<<<<< HEAD | ||
|
||
var inputNum1 = this._musicRatio1.value; | ||
======= | ||
let that = this; | ||
let inputNum1 = this._musicRatio1.value; | ||
>>>>>>> upstream/master | ||
======= | ||
let that = this; | ||
let inputNum1 = this._musicRatio1.value; | ||
>>>>>>> 446b179e34ba9e0c1252d6effd06341b9c486707 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does your committed code have this stuff?
js/widgets/rhythmruler.js
Outdated
<<<<<<< HEAD | ||
|
||
// FIXME: Should be based on meter | ||
for (var i = 0; i < 4; i++) { | ||
setTimeout(() => { | ||
this._logo.synth.trigger( | ||
======= | ||
let that = this; | ||
// FIXME: Should be based on meter | ||
for (let i = 0; i < 4; i++) { | ||
setTimeout(function() { | ||
that._logo.synth.trigger( | ||
>>>>>>> upstream/master |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't fix merge conflicts properly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You commits contain dirty code from merge conflicts. The reviewer should not have to fix these trivial things for you. Be careful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something is breaking. Can't figure out what.
Can't follow so many files at once. Please follow the following:
one file at a time, except for those with less than 20 line differences. |
I'm closing this PR. Follow the steps above for new PRs. |
#2629 Callback to arrow functions