From e27262bdbbf2167ff0b5a9e147c04c8333c02515 Mon Sep 17 00:00:00 2001 From: s-ol Date: Sun, 28 Oct 2018 00:55:21 +1100 Subject: default to main content --- app/mmmfs/browser.moon | 4 ++-- app/mmmfs/tree.moon | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/mmmfs/browser.moon b/app/mmmfs/browser.moon index de5bc7f..50da38b 100644 --- a/app/mmmfs/browser.moon +++ b/app/mmmfs/browser.moon @@ -7,7 +7,7 @@ class Browser new: (@root) => @path = ReactiveVar {} @path\subscribe (path) -> window.location.hash = '/' .. table.concat path, '/' - @prop = ReactiveVar next @root.props + @prop = ReactiveVar (@root\find 'mmm/dom') or next @root.props @active = @path\map (path) -> fileder = @root for name in *path @@ -24,7 +24,7 @@ class Browser fileder - @active\subscribe (fileder) -> @prop\set next fileder.props + @active\subscribe (fileder) -> @prop\set (fileder\find 'mmm/dom') or next fileder.props @tree = div { style: { diff --git a/app/mmmfs/tree.moon b/app/mmmfs/tree.moon index daa7dd4..f1e988b 100644 --- a/app/mmmfs/tree.moon +++ b/app/mmmfs/tree.moon @@ -211,7 +211,7 @@ If you are reading this in the source, then c'mon, just scroll past and give me Fileder { 'name: alpha': 'empty', - 'title: text/plain': "Hey I'm an ad-hoc child with no content for shit", + 'title: text/plain': "Hey I'm an ad-hoc child with no content at all", } Fileder { -- cgit v1.2.3