DmitryBaranovskiy / raphael

JavaScript Vector Library
https://dmitrybaranovskiy.github.io/raphael/
MIT License
11.27k stars 1.67k forks source link

Fixed crash when SVG container is not defined #1090

Closed poechsel closed 5 years ago

poechsel commented 7 years ago

I was playing with raphael and dom-js when Raphael crashed before sending the error

SVG container not found.

This was happening because con was null (so when it tried to access to con.x, it crashed). I fixed this small bug.

When testing my modifications, it appears the unit tests weren't launching because of package.json requiring QUnit 2.0.1 but the tests are written for QUnit 1.x. Reverted back to QUnit 1.x in package.json.