Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

method "delete" not properly recognized #8

Closed
alensiljak opened this issue Dec 6, 2012 · 2 comments
Closed

method "delete" not properly recognized #8

alensiljak opened this issue Dec 6, 2012 · 2 comments

Comments

@alensiljak
Copy link

I've got a class with method named "delete", as in

class Something
    delete: =>
        # code

When compiled into JavaScript, the method is declared as

this."delete"

but this throws exceptions in Chrome debugger. Web Workbench generates the code as

this["delete"]

and it does not generate any exceptions.

Not sure if this is the correct place to report this bug. If not, please do let me know.
The easiest way seems to be to rename the method to something else but I'm working on existing code, using this plugin in Sublime Text 2, and would prefer not to change existing code if possible.

@alisey
Copy link
Owner

alisey commented Jan 18, 2013

Thanks for the report. This had been fixed in newer CoffeeScript releases. This compiler is obsolete. There are few easy steps to setup the official compiler, see the Installation section on http://coffeescript.org/

@alisey alisey closed this as completed Jan 18, 2013
@alensiljak
Copy link
Author

For anyone interested: http://coffeescript.org/#installation
Basically, install node.js, and then "npm install -g coffee-script".

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

No branches or pull requests

2 participants