Skip to content

Commit

Permalink
Fix issue with IE6 and addNamespace.
Browse files Browse the repository at this point in the history
BUG=66

git-svn-id: https://explorercanvas.googlecode.com/svn/trunk@72 fd59bba8-8519-0410-9389-e36bf2bdbbd6
  • Loading branch information
[email protected] committed Mar 20, 2010
1 parent cc33c29 commit 2bf5472
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions excanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,7 @@ if (!document.createElement('canvas').getContext) {

function addNamespace(doc, prefix, urn) {
if (!doc.namespaces[prefix]) {
if (IE_VERSION >= 7) {
doc.namespaces.add(prefix, urn).doImport('#default#VML');
} else {
// IE6 cannot handle the third argument.
doc.namespaces.add(prefix, urn);
}
doc.namespaces.add(prefix, urn, '#default#VML');
}
}

Expand Down

0 comments on commit 2bf5472

Please sign in to comment.