Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Issue #13: Fix IE8 click handler for VML #31

Merged
merged 1 commit into from

2 participants

@BenjaminCorey

setFill and getOriginalFill methods were different / not implemented for svg and vml. Fix this, now IE8 doesn't throw Object doesn't support this property or method onRegionClick.

@manifestinteractive manifestinteractive merged commit 32ef545 into manifestinteractive:stable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 1, 2012
  1. @BenjaminCorey
This page is out of date. Refresh to see the latest.
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) + '%';
Something went wrong with that request. Please try again.