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

This commit is contained in:
Dmitry Baranovskiy 2013-08-21 10:40:55 +10:00
parent 5909c08ee7
commit 2cec9462c5
3 changed files with 3 additions and 3 deletions

View File

@ -414,7 +414,7 @@
};
function clone(obj) {
if (Object(obj) !== obj) {
if (typeof obj == "function" || Object(obj) !== obj) {
return obj;
}
var res = new obj.constructor;

2
raphael-min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -793,7 +793,7 @@
};
function clone(obj) {
if (Object(obj) !== obj) {
if (typeof obj == "function" || Object(obj) !== obj) {
return obj;
}
var res = new obj.constructor;