Allow Raphael to work in pages with a Content Security Policy that disallows 'unsafe-eval'
This commit is contained in:
parent
5909c08ee7
commit
2cec9462c5
|
|
@ -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;
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue