-
Notifications
You must be signed in to change notification settings - Fork 282
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
Update L.DistortableImage.Edit.js method creation to ES6 syntax #718
Comments
assigned to @jugalj05hi! |
hi @sashadev-sky , first timer here, would love to help with this! edit: just noticed that it's already been assigned. LMK if it still needs more work though 🙏 |
@sashadev-sky getting this error when pushing the local branch on the repo. |
did you fork this repo? The PR has to be from your forked branch to the base/main one. |
Hi, I would like to work on this issue. |
Hi, Can I work on this? @sashadev-sky |
First Time?
This is a first-timers-only issue. This means we've worked to make it more legible to folks who either haven't contributed to our codebase before, or even folks who haven't contributed to open source before.
If that's you, we're interested in helping you take the first step and can answer questions and help you out as you do. Note that we're especially interested in contributions from people from groups underrepresented in free and open source software!
We know that the process of creating a pull request is the biggest barrier for new contributors. This issue is for you 💝
If you have contributed before, consider leaving this one for someone new, and looking through our general help wanted issues. Thanks!
🤔 What you will need to know.
Nothing. This issue is meant to welcome you to Open Source :) We are happy to walk you through the process.
The problem
We just added support for ES6 in our library, and would like to start transitioning our code to use this syntax.
Let's update the method creation syntax from ES5 to ES6 for several methods in
src/edit/DistortableImage.Edit.js
.Solution
For the following 6
L.DistortableImage.Edit
methods, remove thefunction
keyword and attach the method arguments to the method name instead:initialize
addHooks
removeHooks
disable
_initModes
_initHandles
Here is an example of how this will look for a different method. These ones should follow suit:
ES5
ES6
Thanks!!
Step by Step
commit your changes to your branch and start a pull request (see contributing to Public Lab software) but mark it as "in progress" if you have questions or if you haven't finished
Please keep us updated
💬⏰ - We encourage contributors to be respectful to the community and provide an update within a week of claiming a first-timers-only issue. We're happy to keep it assigned to you as long as you need if you update us, but if we don't see any activity a week after you claim it we may reassign it to give someone else a chance. Thank you in advance!
If this happens to you, don't sweat it! Grab another open issue.
💬 Get help
If you need any help - here are some options:
The text was updated successfully, but these errors were encountered: