Last active
May 10, 2024 15:01
-
-
Save stevelacey/28e4bdf19e3959d6f7d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| obj = | |
| init: -> | |
| @keirsform = $('form.keirform') # could be a wrapper further up, or maybe even the document | |
| # - just something that doesn't get swapped in or out is easiest | |
| @keirsform.on 'click', '.form__item__remove', (e) => | |
| e.preventDefault() | |
| @removeURL $(e.currentTarget) | |
| removeURL: ($link) -> | |
| console.log $link | |
| $link.text $link.text().replace /url/, '' | |
| obj.init() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment