Commit c89ffbe8 authored by ipetropolsky's avatar ipetropolsky

Fix ninja in IE8

parent 48491c87
......@@ -5366,7 +5366,15 @@
| })(Raphael.ninja());
\*/
R.ninja = function () {
oldRaphael.was ? (g.win.Raphael = oldRaphael.is) : delete window.Raphael;
if (oldRaphael.was) {
g.win.Raphael = oldRaphael.is;
} else {
// IE8 raises an error when deleting window property
window.Raphael = undefined;
try {
delete window.Raphael;
} catch(e) {}
}
return R;
};
/*\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment