The code-blocks aren't upset, but I am. I've been moving that function around all day and still got nowhere.
If anyone needs me I’ll be in the corner of the room in the fetal position, in a cold sweat shaking. On Jan 19, 12:54 pm, Andrew Leach <[email protected]> wrote: > On Jan 19, 11:10 am, Gary <[email protected]> wrote: > > > Still not having any joy trying to un-nest that function. > > Find the first line you want to move, which contains the word > "function", its name and the opening brace {. Find the corresponding > closing brace }. Move those lines and everything between them outside > any other function. > > Problems can arise when you mismatch the opening { and what you take > to be the closing }. If you leave a closing brace behind, or take too > many, the code-blocks they define are upset. > > I think I would recommend not nesting any functions at all. Nesting > functions is a specialised business there is usually no need for, and > it causes more problems than it solves. If you de-nest all your > functions, starting with createMarker, you will probably find it > easier to get it right. > > Andrew
-- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
