diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2018-11-01 07:10:38 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2018-11-01 07:10:38 +0000 |
| commit | d8daeb2a0b891bae03a7de2ae4ddf9e7b8b9f66b (patch) | |
| tree | ce843bc1325d095c825da354f14765bc3c72f0db /root/animations | |
| parent | fix event handles in lib.dom (diff) | |
| download | mmm-d8daeb2a0b891bae03a7de2ae4ddf9e7b8b9f66b.tar.gz mmm-d8daeb2a0b891bae03a7de2ae4ddf9e7b8b9f66b.zip | |
smooth navigation
Diffstat (limited to 'root/animations')
| -rw-r--r-- | root/animations/init.moon | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/root/animations/init.moon b/root/animations/init.moon index cb1f20a..ba8cb91 100644 --- a/root/animations/init.moon +++ b/root/animations/init.moon @@ -14,11 +14,9 @@ Fileder { li { a name, { href: child.path, - onclick: (_, e, ...) -> - print 'ASD', e, ... - window\alert 'YO WADDAFUQ' + onclick: (e) => e\preventDefault! - BROWSER\navigate "animations | #{name}", + BROWSER\navigate child.path }, ': ', desc } |
