dynmeth/RaphaelLayer — pull request #5 by Tallmaris (2012-12-13 15:03:08+00:00)
Title: Various fixes

packages.json had a comma too much at the end and it was breaking the npm install command.

The Bezier curve now has 2 control points and I think it looks a lot smoother on a map, except maybe for when the source and destination are exactly aligned horizontally or vertically.

The build script now runs the main self-executing function using the "L" parameter coming from the window object... This is to avoid the L still referencing the global L when this is removed from the global scope (for example when injecting the script dynamically). What was happening was that everything was working ok except the _updateRaphaelViewport, which was still using the global L and thus undefined in my case (I am injecting Leaflet and then running noConflict()).