Skip to content

Commit

Permalink
Merge pull request #363 from visionmedia/feature/shadow-dom
Browse files Browse the repository at this point in the history
Reinstate shadow DOM fixes
  • Loading branch information
rstacruz committed Mar 17, 2016
2 parents 5374876 + e54242d commit 29884fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,8 @@


// ensure link
var el = e.target;
// use shadow dom when available
var el = e.path ? e.path[0] : e.target;
while (el && 'A' !== el.nodeName) el = el.parentNode;
if (!el || 'A' !== el.nodeName) return;

Expand Down

0 comments on commit 29884fb

Please sign in to comment.