Skip to content

Commit

Permalink
whitelist rect elements for showing details for now; fixes shuttersto…
Browse files Browse the repository at this point in the history
  • Loading branch information
dchester committed Jul 18, 2012
1 parent 565a8cd commit 41ebf86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/Rickshaw.Graph.HoverDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Rickshaw.Graph.HoverDetail = Rickshaw.Class.create({
if (!e) return;
this.lastEvent = e;

if (e.target.nodeName != 'path' && e.target.nodeName != 'svg') return;
if (!e.target.nodeName.match(/^(path|svg|rect)$/)) return;

var graph = this.graph;

Expand Down

0 comments on commit 41ebf86

Please sign in to comment.