Commit 2cec9462 by Dmitry Baranovskiy

Allow Raphael to work in pages with a Content Security Policy that disallows 'unsafe-eval'

parent 5909c08e
...@@ -414,7 +414,7 @@ ...@@ -414,7 +414,7 @@
}; };
function clone(obj) { function clone(obj) {
if (Object(obj) !== obj) { if (typeof obj == "function" || Object(obj) !== obj) {
return obj; return obj;
} }
var res = new obj.constructor; var res = new obj.constructor;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -793,7 +793,7 @@ ...@@ -793,7 +793,7 @@
}; };
function clone(obj) { function clone(obj) {
if (Object(obj) !== obj) { if (typeof obj == "function" || Object(obj) !== obj) {
return obj; return obj;
} }
var res = new obj.constructor; var res = new obj.constructor;
......
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 sign in to comment