publiclab / Leaflet.DistortableImage

A Leaflet extension to distort or "rubber sheet" images
https://publiclab.github.io/Leaflet.DistortableImage/examples/
BSD 2-Clause "Simplified" License
265 stars 284 forks source link

Update method creation syntax to ES6 `IconSet.js` #1066

Closed first-timers[bot] closed 1 year ago

first-timers[bot] commented 1 year ago

🆕🐥☝ First Timers Only.

This issue is reserved for people who never contributed to Open Source before. We know that the process of creating a pull request is the biggest barrier for new contributors. This issue is for you 💝

About First Timers Only.

🤔 What you need to know.

Nothing. This issue is meant to welcome you to Open Source :) We are happy to walk you through the process.

📋 Step by Step

@@ -6,12 +6,12 @@ L.IconSet = L.Class.extend({

   _symbols: '',

-  render: function() {
+  render() {
     this.addSymbols(this._symbols);
     return this._svg;
   },

-  addSymbols: function(symbols) {
+  addSymbols(symbols) {
     this._svg += symbols;
   },
 });
  1. If you are familiar with the terminal or would like to learn it, here is a great tutorial on how to send a pull request using the terminal.

  2. You can edit files directly in your browser

🤔❓ Questions

Leave a comment below!

This issue was created by First-Timers-Bot.

TildaDares commented 1 year ago

Reserved for @Khadeeejah for 24 hours!