Permalink
Browse files

Fix IE8 click handler for VML

  • Loading branch information...
1 parent cefdb1b commit 08246b4ee8cfdb03434d73386777f727e5d9b3d0 @BenjaminCorey committed Aug 1, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 jqvmap/jquery.vmap.js
View
@@ -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) + '%';

0 comments on commit 08246b4

Please sign in to comment.