raphael
raphael copied to clipboard
Running renderfix breaks UAs without getScreenCTM() support
The renderfix method should do some object detection to avoid breaking pages when running in browsers where getScreenCTM() doesn't exist. This is a problem for rendering pages in Prince. A small check and an early return here seems like a good fix: https://github.com/DmitryBaranovskiy/raphael/blob/eb43ba140fa43b170cac73ecc95fa0319b371c6e/dev/raphael.svg.js#L1362
(Browsers that do support createSVGMatrix() escape un-harmed thanks to the new try..catch in 2.2 - this wasn't added yet in 2.0 which is the version that still powers the demos on http://dmitrybaranovskiy.github.io/raphael/ .)