We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
First, thanks for creating this great project. I'm really looking forward to getting my project set to use source maps!
I had a compilation error on some code that works at coffeescript.org that I thought you might be interested in.
On line 7 of the code below a syntax error is thrown, because the dot operator is on a new line.
Erring:
Page = () -> @title = "default" title: () -> @title setTitle: (value) -> @title = value angular .module("test.factories", []) .factory("Page", () -> new Page()) coffee
Workaround:
Page = () -> @title = "default" title: () -> @title setTitle: (value) -> @title = value angular.module("test.factories", []).factory("Page", () -> new Page()) coffee
The text was updated successfully, but these errors were encountered:
+1 This is a really common pattern when using chaining apis.
This is another workaround and works as expected:
angular .module("test.factories", []) .factory("Page", () -> new Page())
Be sure to use parentheses around the arguments. This does not work:
angular .module "test.factories", [] .factory "Page", () -> new Page()
because .factory is called on []:
.factory
[]
angular.module('test.factories', [].factory('Page', function () { return new Page; }));
Sorry, something went wrong.
a0a7401
I think here is another scenario fails:
$.get('url') .done -> alert 'success'
No branches or pull requests
First, thanks for creating this great project. I'm really looking forward to getting my project set to use source maps!
I had a compilation error on some code that works at coffeescript.org that I thought you might be interested in.
On line 7 of the code below a syntax error is thrown, because the dot operator is on a new line.
Erring:
Workaround:
The text was updated successfully, but these errors were encountered: