I want to invoke a function like openInfoWindow(SomeClass sc)
, sc as a parameter.
However,codes like this openInfoWindow(new SomeClass(){width=1;})
didn't work out.
Is it invalid for a anonymous class to be passed into a function as a parameter in Javascript?
looking forward to your help!!