rstacruz/js2coffee — Issue #102: Inline hash needs to go on new line
Author: jopotts
Created: 2011-10-12 17:13:38+00:00
State: open

In the example below, it's js -> coffee -> js
to demonstrate the problem. foo: bar needs to go on a new line.

$.ajax({
url: "path",
data: { "foo" : "bar" },
dataType: 'json'
})

$.ajax
url: "path"
data: foo: "bar"
dataType: "json"

$.ajax({
url: "path",
data: {
foo: "bar",
dataType: "json"
}
});

Sorry if this issue already exists, but there were too many to read through!
Good work. Thanks. :)