I have:
var doBlah = function(param0) {
return {
objectMember: function( param1 )
{
var a = param1;
}
}
}
Which works fine but when I do a different indentation as:
var doBlah = function(param0) {
return
{
objectMember: function( param1 )
{
var a = param1;
}
}
}
I get the following error: Uncaught SyntaxError: Unexpected token (
Why is this? Seems to be behaving similar to python. Any references to official docs would be greatly appreciated.