Skip to content
This repository was archived by the owner on Apr 10, 2020. It is now read-only.

Commit 4bf974d

Browse files
author
Dirk Groenen
committed
Changed replacement test
1 parent 75529d8 commit 4bf974d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/client/jquery.svgmagic.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
* Craig Fowler [CSF Software Limited - [email protected]] Redesign and enhancements
99
10-
Version 3.0.0
10+
Version 3.0.1
1111
1212
---
1313
@@ -257,7 +257,7 @@
257257
*/
258258
function shouldPerformReplacement(opts)
259259
{
260-
return opts.forceReplacements || typeof document.createElement('svg').getAttributeNS !== 'function';
260+
return opts.forceReplacements || !document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image", "1.1");
261261
}
262262

263263
/**

0 commit comments

Comments
 (0)