Skip to content

Commit

Permalink
Fix IE8 click handler for VML
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminCorey committed Aug 1, 2012
1 parent cefdb1b commit 08246b4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion jqvmap/jquery.vmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) + '%';
Expand Down

0 comments on commit 08246b4

Please sign in to comment.