Skip to content
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

@close => .destroy (coffeescript) #21

Closed
ronen opened this issue Jul 8, 2014 · 5 comments · Fixed by #38
Closed

@close => .destroy (coffeescript) #21

ronen opened this issue Jul 8, 2014 · 5 comments · Fixed by #38

Comments

@ronen
Copy link

ronen commented Jul 8, 2014

for code in which a view has a method to close (now destroy itself), the coffeescript might have looked like:

  goAway:  ->
       @close()

and upgrade.py proposes to replace this with:

  goAway:  ->
       .destroy()

rather than:

 goAway: ->
      @destroy()
@vinnymac
Copy link

vinnymac commented Aug 5, 2014

I can confirm this happens. It occurs every time @close() was called inside of a function.

@jasonLaster
Copy link
Member

Hey @vinnymac, @ronen - mind investigating a fix for this. I'm not currently doing any coffeescript, so i don't think i'll be able to put too much time into in the near future.

@samccone
Copy link
Member

samccone commented Aug 8, 2014

hey guys, yeah this tool "kinda" works for coffeescript, I think if we wanted to really support coffeescript we would need a new matcher / replacement file. If someone is interested in taking a stab obviously @jasonLaster and I have your back :)

@ronen
Copy link
Author

ronen commented Aug 8, 2014

@jasonLaster, yeah I'd love to but sadly I doubt I'll get a chance any time soon.

@samccone it's been a month since I did my upgrade, but AFAI can remember it actually worked pretty well on all my coffeescript, and this issue was the only significant hitch I encountered.

In any case, even despite this fairly minor issue, huge kudos for making the automated upgrade script! (Not to mention for making Marionette itself :)

@samccone
Copy link
Member

samccone commented Aug 8, 2014

👍 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants