We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
I'm not new to coffeescript but this kind of behavior really surprised me.
I would expect there will be no difference if I put closing bracket on line 7 between indent of '$' to indent of 'false' :
$(document) .on "click", (event) -> $(".xyz").click( -> false ) # <-- false
$(document).on("click", function(event) { $(".xyz").click(function() { return false; }); return false; });
http://coffeescript.org/#try:%0A%20%20%24(document)%0A%20%20%0A%20%20%20%20.on%20%22click%22%2C%20(event)%20-%3E%0A%0A%20%20%20%20%20%20%20%24(%22.xyz%22).click(%20-%3E%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20false%0A%20%20%20%20%20%20%20)%0A%0A%20%20%20%20%20%20%20false
Closing bracket on line 7 indented with 1-2 spaces
$(document) .on "click", (event) -> $(".xyz").click( -> false ) false
$(document).on("click", function(event) { return $(".xyz").click(function() { return false; }); }); false;
http://coffeescript.org/#try:%0A%20%20%24(document)%0A%20%20%0A%20%20%20%20.on%20%22click%22%2C%20(event)%20-%3E%0A%0A%20%20%20%20%20%20%20%24(%22.xyz%22).click(%20-%3E%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20false%0A%20%20%20%20%20%20%20%20)%0A%0A%20%20%20%20%20%20%20false
Closing bracket on line 7 indented with 3-4 spaces
$(document).on("click", function(event) { return $(".xyz").click(function() { return false; }); });
http://coffeescript.org/#try:%0A%20%20%24(document)%0A%20%20%0A%20%20%20%20.on%20%22click%22%2C%20(event)%20-%3E%0A%0A%20%20%20%20%20%20%20%24(%22.xyz%22).click(%20-%3E%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20false%0A%20%20%20%20%20%20%20%20%20%20)%0A%0A%20%20%20%20%20%20%20false
Closing bracket on line 7 indented with 5 spaces
http://coffeescript.org/#try:%0A%20%20%24(document)%0A%20%20%0A%20%20%20%20.on%20%22click%22%2C%20(event)%20-%3E%0A%0A%20%20%20%20%20%20%20%24(%22.xyz%22).click(%20-%3E%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20false%0A%20%20%20%20%20%20%20%20%20%20%20%20)%0A%0A%20%20%20%20%20%20%20false
Closing bracket on line 7 indented with 6 spaces
http://coffeescript.org/#try:%0A%20%20%24(document)%0A%20%20%0A%20%20%20%20.on%20%22click%22%2C%20(event)%20-%3E%0A%0A%20%20%20%20%20%20%20%24(%22.xyz%22).click(%20-%3E%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20false%0A%20%20%20%20%20%20%20%20%20%20%20%20%20)%0A%0A%20%20%20%20%20%20%20false
Closing bracket on line 7 indented with 7 spaces
http://coffeescript.org/#try:%0A%20%20%24(document)%0A%20%20%0A%20%20%20%20.on%20%22click%22%2C%20(event)%20-%3E%0A%0A%20%20%20%20%20%20%20%24(%22.xyz%22).click(%20-%3E%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20false%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20)%0A%0A%20%20%20%20%20%20%20false
The text was updated successfully, but these errors were encountered:
I believe you're running into #1275
Sorry, something went wrong.
You right
No branches or pull requests
I'm not new to coffeescript but this kind of behavior really surprised me.
I would expect there will be no difference if I put closing bracket on line 7 between indent of '$' to indent of 'false' :
http://coffeescript.org/#try:%0A%20%20%24(document)%0A%20%20%0A%20%20%20%20.on%20%22click%22%2C%20(event)%20-%3E%0A%0A%20%20%20%20%20%20%20%24(%22.xyz%22).click(%20-%3E%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20false%0A%20%20%20%20%20%20%20)%0A%0A%20%20%20%20%20%20%20false
Closing bracket on line 7 indented with 1-2 spaces
http://coffeescript.org/#try:%0A%20%20%24(document)%0A%20%20%0A%20%20%20%20.on%20%22click%22%2C%20(event)%20-%3E%0A%0A%20%20%20%20%20%20%20%24(%22.xyz%22).click(%20-%3E%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20false%0A%20%20%20%20%20%20%20%20)%0A%0A%20%20%20%20%20%20%20false
Closing bracket on line 7 indented with 3-4 spaces
http://coffeescript.org/#try:%0A%20%20%24(document)%0A%20%20%0A%20%20%20%20.on%20%22click%22%2C%20(event)%20-%3E%0A%0A%20%20%20%20%20%20%20%24(%22.xyz%22).click(%20-%3E%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20false%0A%20%20%20%20%20%20%20%20%20%20)%0A%0A%20%20%20%20%20%20%20false
Closing bracket on line 7 indented with 5 spaces
http://coffeescript.org/#try:%0A%20%20%24(document)%0A%20%20%0A%20%20%20%20.on%20%22click%22%2C%20(event)%20-%3E%0A%0A%20%20%20%20%20%20%20%24(%22.xyz%22).click(%20-%3E%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20false%0A%20%20%20%20%20%20%20%20%20%20%20%20)%0A%0A%20%20%20%20%20%20%20false
Closing bracket on line 7 indented with 6 spaces
http://coffeescript.org/#try:%0A%20%20%24(document)%0A%20%20%0A%20%20%20%20.on%20%22click%22%2C%20(event)%20-%3E%0A%0A%20%20%20%20%20%20%20%24(%22.xyz%22).click(%20-%3E%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20false%0A%20%20%20%20%20%20%20%20%20%20%20%20%20)%0A%0A%20%20%20%20%20%20%20false
Closing bracket on line 7 indented with 7 spaces
http://coffeescript.org/#try:%0A%20%20%24(document)%0A%20%20%0A%20%20%20%20.on%20%22click%22%2C%20(event)%20-%3E%0A%0A%20%20%20%20%20%20%20%24(%22.xyz%22).click(%20-%3E%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20false%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20)%0A%0A%20%20%20%20%20%20%20false
The text was updated successfully, but these errors were encountered: