From d8daeb2a0b891bae03a7de2ae4ddf9e7b8b9f66b Mon Sep 17 00:00:00 2001 From: s-ol Date: Thu, 1 Nov 2018 18:10:38 +1100 Subject: smooth navigation --- root/animations/init.moon | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'root/animations') 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 } -- cgit v1.2.3