Skip to content

Instantly share code, notes, and snippets.

@loentar
Created July 24, 2016 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loentar/543e0400729a6febc05040b955ce205d to your computer and use it in GitHub Desktop.
Save loentar/543e0400729a6febc05040b955ce205d to your computer and use it in GitHub Desktop.
--- jquery.flot.pie.js.orig 2016-07-24 11:58:39.000000000 +0300
+++ jquery.flot.pie.js 2016-07-24 12:00:15.496113223 +0300
@@ -126,6 +126,7 @@
if (options.grid.clickable) {
eventHolder.unbind("click").click(onClick);
}
+ eventHolder.unbind("mouseout").mouseout(onMouseOut);
}
});
@@ -649,6 +650,10 @@
triggerClickHoverEvent("plotclick", e);
}
+ function onMouseOut(e) {
+ unhighlight();
+ }
+
// trigger click or hover event (they send the same parameters so we share their code)
function triggerClickHoverEvent(eventname, e) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment