easier templates

This commit is contained in:
Rich Harris
2017-12-13 14:14:06 -05:00
parent 6d4c26d15d
commit e1ed1896e6
3 changed files with 50 additions and 3 deletions

View File

@@ -1,6 +1,5 @@
const router = {
init(callback) {
console.log('initing');
window.addEventListener('click', event => {
let a = event.target;
while (a && a.nodeName !== 'A') a = a.parentNode;