Skip to content

Commit aa60550

Browse files
committed
Release 1.7.1
1 parent 29884fb commit aa60550

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

History.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
1.7.1 / 2016-03-17
2+
==================
3+
4+
* [#363] - Reinstate shadow DOM fixes which were reverted
5+
6+
[#363]: https://github.com/visionmedia/page.js/issues/363
7+
18
1.7.0 / 2016-03-12
29
==================
310

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "page",
33
"description": "Tiny client-side router",
4-
"version": "1.7.0",
4+
"version": "1.7.1",
55
"license": "MIT",
66
"repository": {
77
"type": "git",

page.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,8 @@
550550

551551

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

0 commit comments

Comments
 (0)