Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix IE8 click handler for VML

  • Loading branch information...
commit 08246b4ee8cfdb03434d73386777f727e5d9b3d0 1 parent cefdb1b
@BenjaminCorey authored
Showing with 8 additions and 1 deletion.
  1. +8 −1 jqvmap/jquery.vmap.js
View
9 jqvmap/jquery.vmap.js
@@ -237,13 +237,20 @@
node.setFill = function (color)
{
this.getElementsByTagName('fill')[0].color = color;
+ if(this.getAttribute("original") === null)
+ {
+ this.setAttribute("original", color);
+ }
};
node.getFill = function (color)
{
return this.getElementsByTagName('fill')[0].color;
};
-
+ node.getOriginalFill = function ()
+ {
+ return this.getAttribute("original");
+ };
node.setOpacity = function (opacity)
{
this.getElementsByTagName('fill')[0].opacity = parseInt(opacity * 100, 10) + '%';
Please sign in to comment.
Something went wrong with that request. Please try again.