mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-18 18:41:08 +00:00
Fix Cufon to use canvas renderer in IE9 (it was overwriting it with VML-based one).
This commit is contained in:
parent
bc2384c8c3
commit
2a9f645752
1 changed files with 3 additions and 0 deletions
|
|
@ -845,6 +845,9 @@ Cufon.registerEngine('vml', (function() {
|
|||
|
||||
if (!document.namespaces) return;
|
||||
|
||||
var canvasEl = document.createElement('canvas');
|
||||
if (canvasEl && canvasEl.getContext && canvasEl.getContext.apply) return;
|
||||
|
||||
if (document.namespaces.cvml == null) {
|
||||
document.namespaces.add('cvml', 'urn:schemas-microsoft-com:vml');
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue